postgres.git / summary / log / commit / refs
commit c71e273402bbb4262a3d09f045880d485076cd40
Author: Bruce Momjian <bruce@momjian.us>
Date: Mon May 11 15:45:43 2015 +0000
First released in: 9.5.0
pg_dump: suppress "Tablespace:" comment for default tablespaces
Report by Hans Ginzel
src/bin/pg_dump/pg_backup_archiver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
[parent: 04e6d3b877e0]