pgsql: pg_dump, pg_upgrade: allow postgres/template1 tablespace moves - Mailing list pgsql-committers

From Bruce Momjian
Subject pgsql: pg_dump, pg_upgrade: allow postgres/template1 tablespace moves
Date
Msg-id E1ZaUM5-0000w0-0E@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/befc63e849d24a4d4aacece42937f7600af7967f

Modified Files
--------------
contrib/pg_upgrade/info.c    |   18 ++++++++++++++++--
src/bin/pg_dump/pg_dumpall.c |   22 ++++++++++++++++++++++
2 files changed, 38 insertions(+), 2 deletions(-)


pgsql-committers by date:

Previous
From: Bruce Momjian
Date:
Subject: pgsql: pg_dump, pg_upgrade: allow postgres/template1 tablespace moves
Next
From: Bruce Momjian
Date:
Subject: pgsql: pg_dump, pg_upgrade: allow postgres/template1 tablespace moves