pgsql: Add an Assert that indexam.c isn't used on an index awaiting rei

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add an Assert that indexam.c isn't used on an index awaiting rei
Date: 2011-04-16 23:29:33
Message-ID: E1QBEvl-0004kk-MK@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add an Assert that indexam.c isn't used on an index awaiting reindexing.

This might have caught the recent embarrassment over trying to modify
pg_index while its indexes were being rebuilt.

Noah Misch

Branch
------
master

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

Modified Files
--------------
src/backend/access/index/indexam.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-04-17 17:37:50 pgsql: foreach() and list_delete() don't mix.
Previous Message Tom Lane 2011-04-16 21:26:58 pgsql: Simplify reindex_relation's API.