Add comment about why pg_dump doesn't dump the public schema comment.
authorBruce Momjian <bruce@momjian.us>
Fri, 5 Sep 2008 23:53:42 +0000 (23:53 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 5 Sep 2008 23:53:42 +0000 (23:53 +0000)
src/bin/pg_dump/pg_backup_archiver.c

index 2c5828c572d4f87423a1e929e6a5afec02bbeee7..7bd44f27d87b7d2302ba3540225378e35710b604 100644 (file)
@@ -2542,6 +2542,7 @@ _printTocEntry(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt, bool isDat
                if (strcmp(te->desc, "SCHEMA") == 0 &&
                        strcmp(te->tag, "public") == 0)
                        return;
+               /* The comment restore would require super-user privs, so avoid it. */
                if (strcmp(te->desc, "COMMENT") == 0 &&
                        strcmp(te->tag, "SCHEMA public") == 0)
                        return;