mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Dept of second thoughts: --no-tablespaces had better also prevent
pg_dumpall from attaching TABLESPACE options to CREATE DATABASE commands.
This commit is contained in:
parent
68528d37bb
commit
27dfc11d67
@ -6,7 +6,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.101 2008/03/20 17:36:57 tgl Exp $
|
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.102 2008/03/20 17:42:51 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1020,7 +1020,7 @@ dumpCreateDB(PGconn *conn)
|
|||||||
* would be to use 'SET default_tablespace' like we do in pg_dump
|
* would be to use 'SET default_tablespace' like we do in pg_dump
|
||||||
* for setting non-default database locations.
|
* for setting non-default database locations.
|
||||||
*/
|
*/
|
||||||
if (strcmp(dbtablespace, "pg_default") != 0)
|
if (strcmp(dbtablespace, "pg_default") != 0 && !no_tablespaces)
|
||||||
appendPQExpBuffer(buf, " TABLESPACE = %s",
|
appendPQExpBuffer(buf, " TABLESPACE = %s",
|
||||||
fmtId(dbtablespace));
|
fmtId(dbtablespace));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user