pg_dump support for comments on FOREIGN DATA WRAPPER and SERVER objects.
Shigeru Hanada, with some corrections.
This commit is contained in:
parent
50533a6dc5
commit
dd095b623e
@ -11059,6 +11059,11 @@ dumpForeignDataWrapper(Archive *fout, FdwInfo *fdwinfo)
|
||||
NULL, fdwinfo->rolname,
|
||||
fdwinfo->fdwacl);
|
||||
|
||||
/* Dump Foreign Data Wrapper Comments */
|
||||
dumpComment(fout, labelq->data,
|
||||
NULL, fdwinfo->rolname,
|
||||
fdwinfo->dobj.catId, 0, fdwinfo->dobj.dumpId);
|
||||
|
||||
free(qfdwname);
|
||||
|
||||
destroyPQExpBuffer(q);
|
||||
@ -11163,6 +11168,11 @@ dumpForeignServer(Archive *fout, ForeignServerInfo *srvinfo)
|
||||
srvinfo->rolname,
|
||||
srvinfo->dobj.catId, srvinfo->dobj.dumpId);
|
||||
|
||||
/* Dump Foreign Server Comments */
|
||||
dumpComment(fout, labelq->data,
|
||||
NULL, srvinfo->rolname,
|
||||
srvinfo->dobj.catId, 0, srvinfo->dobj.dumpId);
|
||||
|
||||
free(qsrvname);
|
||||
|
||||
destroyPQExpBuffer(q);
|
||||
|
Loading…
x
Reference in New Issue
Block a user