diff options
author | Bruce Momjian <bruce@momjian.us> | 2015-05-11 11:45:43 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2015-05-11 11:45:43 -0400 |
commit | c71e273402bbb4262a3d09f045880d485076cd40 (patch) | |
tree | a373bf151c2762119a691a48751b2db85b0e679f | |
parent | 04e6d3b877e060d8445eb653b7ea26b1ee5cec6b (diff) | |
download | postgresql-c71e273402bbb4262a3d09f045880d485076cd40.tar.gz postgresql-c71e273402bbb4262a3d09f045880d485076cd40.zip |
pg_dump: suppress "Tablespace:" comment for default tablespaces
Report by Hans Ginzel
-rw-r--r-- | src/bin/pg_dump/pg_backup_archiver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c index ca427de7ae9..f9b564eee41 100644 --- a/src/bin/pg_dump/pg_backup_archiver.c +++ b/src/bin/pg_dump/pg_backup_archiver.c @@ -3246,7 +3246,7 @@ _printTocEntry(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt, bool isDat free(sanitized_schema); free(sanitized_owner); - if (te->tablespace && !ropt->noTablespace) + if (te->tablespace && strlen(te->tablespace) > 0 && !ropt->noTablespace) { char *sanitized_tablespace; |