Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit27dfc11

Browse files
committed
Dept of second thoughts: --no-tablespaces had better also prevent
pg_dumpall from attaching TABLESPACE options to CREATE DATABASE commands.
1 parent68528d3 commit27dfc11

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)

[8]ページ先頭

©2009-2025 Movatter.jp