]> granicus.if.org Git - postgresql/commit
pg_dump, pg_upgrade: allow postgres/template1 tablespace moves
authorBruce Momjian <bruce@momjian.us>
Fri, 11 Sep 2015 19:51:10 +0000 (15:51 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 11 Sep 2015 19:51:10 +0000 (15:51 -0400)
commitc5391e9334c32fb2cb9251f0e7bb824bb50c9d8c
treea54698995f614697716fa33dd6a4aab82b3fe546
parenta3b420e6c84e47669fb5bc99036361cab03363e8
pg_dump, pg_upgrade:  allow postgres/template1 tablespace moves

Modify pg_dump to restore postgres/template1 databases to non-default
tablespaces by switching out of the database to be moved, then switching
back.

Also, to fix potentially cases where the old/new tablespaces might not
match, fix pg_upgrade to process new/old tablespaces separately in all
cases.

Report by Marti Raudsepp

Patch by Marti Raudsepp, me

Backpatch through 9.0
contrib/pg_upgrade/info.c
src/bin/pg_dump/pg_dumpall.c