From c71e273402bbb4262a3d09f045880d485076cd40 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 11 May 2015 11:45:43 -0400 Subject: [PATCH] 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; -- 2.39.5