|
6 | 6 | * Portions Copyright (c) 1994, Regents of the University of California
|
7 | 7 | *
|
8 | 8 | *
|
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 $ |
10 | 10 | *
|
11 | 11 | *-------------------------------------------------------------------------
|
12 | 12 | */
|
@@ -1020,7 +1020,7 @@ dumpCreateDB(PGconn *conn)
|
1020 | 1020 | * would be to use 'SET default_tablespace' like we do in pg_dump
|
1021 | 1021 | * for setting non-default database locations.
|
1022 | 1022 | */
|
1023 |
| -if (strcmp(dbtablespace,"pg_default")!=0) |
| 1023 | +if (strcmp(dbtablespace,"pg_default")!=0&& !no_tablespaces) |
1024 | 1024 | appendPQExpBuffer(buf," TABLESPACE = %s",
|
1025 | 1025 | fmtId(dbtablespace));
|
1026 | 1026 |
|
|