pg_dump: Fix getTables parrelid
Make sure tblinfo[i].parrelid is set. This was lost in
the upstream backports, and fixes a bug when dumping
from GPDB5/GPDB6.
Authored-by: Brent Doil
@@ -6889,6 +6889,7 @@ getTables(Archive *fout, int *numTables)
else
tblinfo[i].checkoption = pg_strdup(PQgetvalue(res, i, i_checkoption));
tblinfo[i].toast_reloptions = pg_strdup(PQgetvalue(res, i, i_toastreloptions));
+ tblinfo[i].parrelid = atooid(PQgetvalue(res, i, i_parrelid));
if (PQgetisnull(res, i, i_reloftype))
tblinfo[i].reloftype = NULL;
else
