]> 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:11 +0000 (15:51 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 11 Sep 2015 19:51:11 +0000 (15:51 -0400)
commit35d2fc1f299a977483a1ac6d08bfbda104ad2b25
tree8f2f84e574534c89087bbf2ab65295612c0fd860
parent7d0712890d1e18379394cec33b01edb7102928de
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