aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2015-05-11 11:45:43 -0400
committerBruce Momjian <bruce@momjian.us>2015-05-11 11:45:43 -0400
commitc71e273402bbb4262a3d09f045880d485076cd40 (patch)
treea373bf151c2762119a691a48751b2db85b0e679f
parent04e6d3b877e060d8445eb653b7ea26b1ee5cec6b (diff)
downloadpostgresql-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.c2
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;