Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit dd095b6

Browse files
committed
pg_dump support for comments on FOREIGN DATA WRAPPER and SERVER objects.
Shigeru Hanada, with some corrections.
1 parent 50533a6 commit dd095b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/bin/pg_dump/pg_dump.c

+10
Original file line numberDiff line numberDiff line change
@@ -11059,6 +11059,11 @@ dumpForeignDataWrapper(Archive *fout, FdwInfo *fdwinfo)
1105911059
NULL, fdwinfo->rolname,
1106011060
fdwinfo->fdwacl);
1106111061

11062+
/* Dump Foreign Data Wrapper Comments */
11063+
dumpComment(fout, labelq->data,
11064+
NULL, fdwinfo->rolname,
11065+
fdwinfo->dobj.catId, 0, fdwinfo->dobj.dumpId);
11066+
1106211067
free(qfdwname);
1106311068

1106411069
destroyPQExpBuffer(q);
@@ -11163,6 +11168,11 @@ dumpForeignServer(Archive *fout, ForeignServerInfo *srvinfo)
1116311168
srvinfo->rolname,
1116411169
srvinfo->dobj.catId, srvinfo->dobj.dumpId);
1116511170

11171+
/* Dump Foreign Server Comments */
11172+
dumpComment(fout, labelq->data,
11173+
NULL, srvinfo->rolname,
11174+
srvinfo->dobj.catId, 0, srvinfo->dobj.dumpId);
11175+
1116611176
free(qsrvname);
1116711177

1116811178
destroyPQExpBuffer(q);

0 commit comments

Comments
 (0)