Support a --no-tablespaces option in pg_dump/pg_dumpall/pg_restore, so that
Tom Lane <tgl@sss.pgh.pa.us>
Support a --no-tablespaces option in pg_dump/pg_dumpall/pg_restore, so that dumps can be loaded into databases without the same tablespaces that the source had. The option acts by suppressing all "SET default_tablespace" commands, and also CREATE TABLESPACE commands in pg_dumpall's case. Gavin Roy, with documentation and minor fixes by me.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/pg_dumpall.sgml | modified | +15 −2 |
| doc/src/sgml/ref/pg_dump.sgml | modified | +18 −1 |
| doc/src/sgml/ref/pg_restore.sgml | modified | +12 −1 |
| src/bin/pg_dump/pg_backup_archiver.c | modified | +6 −2 |
| src/bin/pg_dump/pg_backup.h | modified | +2 −1 |
| src/bin/pg_dump/pg_dumpall.c | modified | +12 −5 |
| src/bin/pg_dump/pg_dump.c | modified | +9 −3 |
| src/bin/pg_dump/pg_restore.c | modified | +18 −10 |