diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 5db4f5761d..bbd85599dc 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -8880,6 +8880,8 @@ shouldPrintColumn(DumpOptions *dopt, TableInfo *tbinfo, int colno) return true; if (tbinfo->attisdropped[colno]) return false; + if (tbinfo->attgenerated[colno]) + return true; return (tbinfo->attislocal[colno] || tbinfo->ispartition); }