pg_dump: suppress "Tablespace:" comment for default tablespaces

Report by Hans Ginzel
This commit is contained in:
Bruce Momjian 2015-05-11 11:45:43 -04:00
parent 04e6d3b877
commit c71e273402

View File

@ -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;