diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 5561295..a6ffb78 100644 *** a/src/bin/pg_dump/pg_dump.c --- b/src/bin/pg_dump/pg_dump.c *************** dumpForeignDataWrapper(Archive *fout, Fd *** 11059,11064 **** --- 11059,11069 ---- NULL, fdwinfo->rolname, fdwinfo->fdwacl); + /* Dump foreign-data wraper Comments */ + dumpComment(fout, labelq->data, + NULL, "", + fdwinfo->dobj.catId, 0, fdwinfo->dobj.dumpId); + free(qfdwname); destroyPQExpBuffer(q); *************** dumpForeignServer(Archive *fout, Foreign *** 11163,11168 **** --- 11168,11178 ---- srvinfo->rolname, srvinfo->dobj.catId, srvinfo->dobj.dumpId); + /* Dump foreign server Comments */ + dumpComment(fout, labelq->data, + NULL, "", + srvinfo->dobj.catId, 0, srvinfo->dobj.dumpId); + free(qsrvname); destroyPQExpBuffer(q);