]> 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)
commit52b07779ddd07d5cbe4b833c91061bb8ca9379aa
tree6951a8054935ea8b465664ee9cb418ec059fc747
parent6d36d7b63f298a335f495c579cdcde903b4e0645
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