mirror of
https://github.com/postgres/postgres.git
synced 2025-05-31 03:21:24 +03:00
Add comment about why pg_dump doesn't dump the public schema comment.
This commit is contained in:
parent
e540b97248
commit
2cdcf459ba
@ -15,7 +15,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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 &&
|
if (strcmp(te->desc, "SCHEMA") == 0 &&
|
||||||
strcmp(te->tag, "public") == 0)
|
strcmp(te->tag, "public") == 0)
|
||||||
return;
|
return;
|
||||||
|
/* The comment restore would require super-user privs, so avoid it. */
|
||||||
if (strcmp(te->desc, "COMMENT") == 0 &&
|
if (strcmp(te->desc, "COMMENT") == 0 &&
|
||||||
strcmp(te->tag, "SCHEMA public") == 0)
|
strcmp(te->tag, "SCHEMA public") == 0)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user