Thread: pgsql: Fix pg_upgrade for invalid indexes

pgsql: Fix pg_upgrade for invalid indexes

From
Bruce Momjian
Date:
Fix pg_upgrade for invalid indexes

All versions of pg_upgrade upgraded invalid indexes caused by CREATE
INDEX CONCURRENTLY failures and marked them as valid.  The patch adds a
check to all pg_upgrade versions and throws an error during upgrade or
--check.

Backpatch to 9.2, 9.1, 9.0.  Patch slightly adjusted.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/33be41d3adcf8bd272303e0f5dcc4ec41051f141

Modified Files
--------------
contrib/pg_upgrade/check.c |   92 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 92 insertions(+), 0 deletions(-)