Ignore invalid indexes in pg_dump.
Dumping invalid indexes can cause problems at restore time, for example
if the reason the index creation failed was because it tried to enforce
a uniqueness condition not satisfied by the table's data. Also, if the
index creation is in fact still in progress, it seems reasonable to
consider it to be an uncommitted DDL change, which pg_dump wouldn't be
expected to dump anyway.
Back-patch to all active versions, and teach them to ignore invalid
indexes in servers back to 8.2, where the concept was introduced.
src/bin/pg_dump/pg_dump.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
pgsql-hackers by date
|Next:||From: Kevin Grittner||Date: 2013-03-26 21:46:11|
|Subject: Re: Drastic performance loss in assert-enabled build in HEAD|
|Previous:||From: Tom Lane||Date: 2013-03-26 21:18:42|
|Subject: Re: spoonbill vs. -HEAD|
pgsql-committers by date
|Next:||From: Tom Lane||Date: 2013-03-26 21:52:09|
|Subject: pgsql: Fix grammatical errors in some new message strings.|
|Previous:||From: Andres Freund||Date: 2013-03-26 20:20:19|
|Subject: Re: [COMMITTERS] pgsql: Add PF_PRINTF_ATTRIBUTE to