Re: Support for REINDEX CONCURRENTLY
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Michael Paquier <michael.paquier@gmail.com>, Simon Riggs <simon@2ndquadrant.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2012-12-08T15:14:17Z
Lists: 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
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Background worker processes
- da07a1e85651 9.3.0 cited
-
Fix assorted bugs in CREATE/DROP INDEX CONCURRENTLY.
- 3c84046490be 9.3.0 cited
-
Work around unportable behavior of malloc(0) and realloc(NULL, 0).
- 09ac603c36d1 9.3.0 cited
-
Properly set relpersistence for fake relcache entries.
- beb850e1d873 9.3.0 cited