Re: Support for REINDEX CONCURRENTLY
От | Tom Lane |
---|---|
Тема | Re: Support for REINDEX CONCURRENTLY |
Дата | |
Msg-id | 13414.1354979657@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Support for REINDEX CONCURRENTLY (Andres Freund <andres@2ndquadrant.com>) |
Ответы |
Re: Support for REINDEX CONCURRENTLY
|
Список | pgsql-hackers |
Andres Freund <andres@2ndquadrant.com> writes: > The issue I raised above is just about keeping the pg_depend entries > pointing to something valid... And not changing the indexes pg_class.oid > seems to be the easiest solution for that. Yeah, we would have to update pg_depend, pg_constraint, maybe some other places if we go with that. I think that would be safe because we'd be holding ShareRowExclusive lock on the parent table throughout, so nobody else should be doing anything that's critically dependent on seeing such rows. But it'd be a lot of ugly code, for sure. Maybe the best way is to admit that we need a short-term exclusive lock for the swapping step. Or we could wait for MVCC catalog access ... regards, tom lane
В списке pgsql-hackers по дате отправления: