Skip to content

Commit c71e273

Browse files
committed
pg_dump: suppress "Tablespace:" comment for default tablespaces
Report by Hans Ginzel
1 parent 04e6d3b commit c71e273

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pg_dump/pg_backup_archiver.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -3246,7 +3246,7 @@ _printTocEntry(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt, bool isDat
32463246
free(sanitized_schema);
32473247
free(sanitized_owner);
32483248

3249-
if (te->tablespace && !ropt->noTablespace)
3249+
if (te->tablespace && strlen(te->tablespace) > 0 && !ropt->noTablespace)
32503250
{
32513251
char *sanitized_tablespace;
32523252

0 commit comments

Comments
 (0)