]> granicus.if.org Git - postgresql/commitdiff
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 93fe90f7cdc668fd9cc638e0900d5c0fd7d6d6de..e25fcae031d142d65d9d81110aed92e4620d27ba 100644 (file)
@@ -15,7 +15,7 @@
  *
  *
  * IDENTIFICATION
- *             $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.157 2008/05/04 08:32:21 adunstan Exp $
+ *             $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.158 2008/09/05 23:53:42 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -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;