mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
pg_dump: suppress "Tablespace:" comment for default tablespaces
Report by Hans Ginzel
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user