pgsql: Reset reindex-in-progress state before reverifying an exclusion

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Reset reindex-in-progress state before reverifying an exclusion
Date: 2011-06-06 02:31:36
Message-ID: E1QTPbM-0000CD-IJ@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Reset reindex-in-progress state before reverifying an exclusion constraint.

This avoids an Assert failure when we try to use ordinary index fetches
while checking for exclusion conflicts. Per report from Noah Misch.

No need for back-patch because the Assert wasn't there before 9.1.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/dccfb72892acabd25568539ec882cc44c57c25bd

Modified Files
--------------
src/backend/catalog/index.c | 64 +++++++++++++++++++--------
src/test/regress/input/constraints.source | 3 +
src/test/regress/output/constraints.source | 2 +
3 files changed, 50 insertions(+), 19 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-06-06 18:25:41 Re: pgsql: Make decompilation of optimized CASE constructs more robust.
Previous Message Andrew Dunstan 2011-06-04 23:39:45 pgsql: Allow building with perl 5.14.