Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2cdcf45

Browse files
committed
Add comment about why pg_dump doesn't dump the public schema comment.
1 parente540b97 commit2cdcf45

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)

[8]ページ先頭

©2009-2025 Movatter.jp