diff options
Diffstat (limited to 'src/bin/pg_dump/pg_backup_archiver.c')
-rw-r--r-- | src/bin/pg_dump/pg_backup_archiver.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c index 632077113a4..7480e122b61 100644 --- a/src/bin/pg_dump/pg_backup_archiver.c +++ b/src/bin/pg_dump/pg_backup_archiver.c @@ -2936,8 +2936,8 @@ _tocEntryRequired(TocEntry *te, teSection curSection, ArchiveHandle *AH) { if (!ropt->dumpStatistics) return 0; - else - res = REQ_STATS; + + res = REQ_STATS; } /* @@ -2984,10 +2984,6 @@ _tocEntryRequired(TocEntry *te, teSection curSection, ArchiveHandle *AH) if (ropt->no_subscriptions && strcmp(te->desc, "SUBSCRIPTION") == 0) return 0; - /* If it's statistics and we don't want statistics, maybe ignore it */ - if (!ropt->dumpStatistics && strcmp(te->desc, "STATISTICS DATA") == 0) - return 0; - /* Ignore it if section is not to be dumped/restored */ switch (curSection) { |