Re: Assert failure when rechecking an exclusion constraint
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Noah Misch <noah@leadboat.com>
Cc: pgsql-hackers@postgresql.org, Jeff Davis <pgsql@j-davis.com>
Date: 2011-06-05T18:17:00Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add an Assert that indexam.c isn't used on an index awaiting reindexing.
- d2f60a3ab055 9.1.0 cited
Attachments
- reindex-assert-fix-1.patch (text/x-patch) patch
- reindex-assert-fix-2.patch (text/x-patch) patch
I wrote: > Noah Misch <noah@leadboat.com> writes: >> Sounds reasonable. Need to remove the index from pendingReindexedIndexes, not >> just call ResetReindexProcessing(). > [ looks again... ] Uh, right. I was thinking that the pending list was > just "pending" and not "in progress" indexes. I wonder if we should > rejigger things so that that's actually true, ie, remove an index's OID > from the pending list when we mark it as the current one? Attached are two versions of a patch to fix this. The second one modifies the code that tracks what's "pending" as per the above thought. I'm not entirely sure which one I like better ... any comments? regards, tom lane