Commit c71e2734 authored by Bruce Momjian's avatar Bruce Momjian

pg_dump: suppress "Tablespace:" comment for default tablespaces

Report by Hans Ginzel
parent 04e6d3b8
...@@ -3246,7 +3246,7 @@ _printTocEntry(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt, bool isDat ...@@ -3246,7 +3246,7 @@ _printTocEntry(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt, bool isDat
free(sanitized_schema); free(sanitized_schema);
free(sanitized_owner); free(sanitized_owner);
if (te->tablespace && !ropt->noTablespace) if (te->tablespace && strlen(te->tablespace) > 0 && !ropt->noTablespace)
{ {
char *sanitized_tablespace; char *sanitized_tablespace;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment