postgresql/src/bin
Tom Lane 73b9952e82 Improve pg_upgrade's report about failure to match up old and new tables.
Ordinarily, pg_upgrade shouldn't have any difficulty in matching up all
the relations it sees in the old and new databases.  If it does, however,
it just goes belly-up with a pretty unhelpful error message.  That seemed
fine as long as we expected the case never to occur in the wild, but
Alvaro reported that it had been seen in a database whose pg_largeobject
table had somehow acquired a TOAST table.  That doesn't quite seem like
a case that pg_upgrade actually needs to handle, but it would be good if
the report were more diagnosable.  Hence, extend the logic to print out
as much information as we can about the mismatch(es) before we quit.

In passing, improve the readability of get_rel_infos()'s data collection
query, which had suffered seriously from lets-not-bother-to-update-comments
syndrome, and generally was unnecessarily disrespectful to readers.

It could be argued that this is a bug fix, but given that we have so few
reports, I don't feel a need to back-patch; at least not before this has
baked awhile in HEAD.
2016-05-06 14:45:01 -04:00
..
initdb Add BSD authentication method. 2016-04-08 13:52:06 -04:00
pg_archivecleanup Make WAL-related utilities handle .partial WAL files properly. 2015-07-03 11:53:58 +09:00
pg_basebackup Support building with Visual Studio 2015 2016-04-29 08:09:07 -04:00
pg_config Update GETTEXT_FILES after config and controldata refactoring 2016-04-24 20:58:11 -04:00
pg_controldata Update GETTEXT_FILES after config and controldata refactoring 2016-04-24 20:58:11 -04:00
pg_ctl Fix backwards test for Windows service-ness in pg_ctl. 2016-03-07 10:40:44 -05:00
pg_dump Add TAP tests for pg_dump 2016-05-06 14:06:50 -04:00
pg_resetxlog Change delimiter used for display of NextXID 2016-02-12 14:23:59 -08:00
pg_rewind pg_rewind: Improve internationalization 2016-03-28 14:33:00 -03:00
pg_test_fsync Move pg_test_fsync from contrib/ to src/bin/ 2015-04-19 22:20:49 -04:00
pg_test_timing Move pg_test_timing from contrib/ to src/bin/ 2015-04-20 21:30:12 -04:00
pg_upgrade Improve pg_upgrade's report about failure to match up old and new tables. 2016-05-06 14:45:01 -04:00
pg_xlogdump Generic Messages for Logical Decoding 2016-04-06 10:05:41 +01:00
pgbench Fix pgbench's parsing of double values to notice trailing garbage. 2016-05-06 11:08:48 -04:00
pgevent Update copyright for 2016 2016-01-02 13:33:40 -05:00
psql Fix psql's \ev and \sv commands so that they handle view reloptions. 2016-05-06 12:48:27 +01:00
scripts Link libpq after libpgfeutils to satisfy Windows linker. 2016-03-24 20:45:31 -04:00
Makefile Update copyright for 2016 2016-01-02 13:33:40 -05:00