Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 27dfc11

Browse files
committed
Dept of second thoughts: --no-tablespaces had better also prevent
pg_dumpall from attaching TABLESPACE options to CREATE DATABASE commands.
1 parent 68528d3 commit 27dfc11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_dump/pg_dumpall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
88
*
9-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.101 2008/03/20 17:36:57 tgl Exp $
9+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.102 2008/03/20 17:42:51 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -1020,7 +1020,7 @@ dumpCreateDB(PGconn *conn)
10201020
* would be to use 'SET default_tablespace' like we do in pg_dump
10211021
* for setting non-default database locations.
10221022
*/
1023-
if (strcmp(dbtablespace, "pg_default") != 0)
1023+
if (strcmp(dbtablespace, "pg_default") != 0 && !no_tablespaces)
10241024
appendPQExpBuffer(buf, " TABLESPACE = %s",
10251025
fmtId(dbtablespace));
10261026

0 commit comments

Comments
 (0)