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

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(-)