]> granicus.if.org Git - postgresql/commit
Ignore invalid indexes in pg_dump.
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Mar 2013 21:43:23 +0000 (17:43 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 Mar 2013 21:43:23 +0000 (17:43 -0400)
commit96103c6a0f14878c5efce85cdbde20ca29298c67
tree4d6313c372b52e48533120460054aeaf3bb230fa
parent13f9634ceefb9aae4567ef6b982254df2082aa08
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.

Michael Paquier
src/bin/pg_dump/pg_dump.c