]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix pg_dumpall to restore its ability to dump from ancient servers.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Nov 2014 23:19:32 +0000 (18:19 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Nov 2014 23:19:32 +0000 (18:19 -0500)
commit9fc8871212d3000c2964698dfc844b94ba049599
treecf90231bd73815e3527f29a51e09abb9ce8558d9
parent861d3aa43d2f38f19773cf4636937837bb0c2167
Fix pg_dumpall to restore its ability to dump from ancient servers.

Fix breakage induced by commits d8d3d2a4f37f6df5d0118b7f5211978cca22091a
and 463f2625a5fb183b6a8925ccde98bb3889f921d9: pg_dumpall has crashed when
attempting to dump from pre-8.1 servers since then, due to faulty
construction of the query used for dumping roles from older servers.
The query was erroneous as of the earlier commit, but it wasn't exposed
unless you tried to use --binary-upgrade, which you presumably wouldn't
with a pre-8.1 server.  However commit 463f2625a made it fail always.

In HEAD, also fix additional breakage induced in the same query by
commit 491c029dbc4206779cf659aa0ff986af7831d2ff, which evidently wasn't
tested against pre-8.1 servers either.

The bug is only latent in 9.1 because 463f2625a hadn't landed yet, but
it seems best to back-patch all branches containing the faulty query.

Gilles Darold
src/bin/pg_dump/pg_dumpall.c