Skip to content

Commit 2cdcf45

Browse files
committed
Add comment about why pg_dump doesn't dump the public schema comment.
1 parent e540b97 commit 2cdcf45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*
1717
* IDENTIFICATION
18-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.157 2008/05/04 08:32:21 adunstan Exp $
18+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.158 2008/09/05 23:53:42 momjian Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -2542,6 +2542,7 @@ _printTocEntry(ArchiveHandle *AH, TocEntry *te, RestoreOptions *ropt, bool isDat
25422542
if (strcmp(te->desc, "SCHEMA") == 0 &&
25432543
strcmp(te->tag, "public") == 0)
25442544
return;
2545+
/* The comment restore would require super-user privs, so avoid it. */
25452546
if (strcmp(te->desc, "COMMENT") == 0 &&
25462547
strcmp(te->tag, "SCHEMA public") == 0)
25472548
return;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy