@@ -9021,7 +9021,7 @@ getTableAttrs(Archive *fout, TableInfo *tblinfo, int numTables)
90219021 tbinfo->attoptions[j] = pg_strdup(PQgetvalue(res, r, i_attoptions));
90229022 tbinfo->attcollation[j] = atooid(PQgetvalue(res, r, i_attcollation));
90239023 tbinfo->attcompression[j] = *(PQgetvalue(res, r, i_attcompression));
9024- tbinfo->attisinvisible[j] = (PQgetvalue(res, j , i_attisinvisible)[0] == 't');
9024+ tbinfo->attisinvisible[j] = (PQgetvalue(res, r , i_attisinvisible)[0] == 't');
90259025 tbinfo->attfdwoptions[j] = pg_strdup(PQgetvalue(res, r, i_attfdwoptions));
90269026 tbinfo->attmissingval[j] = pg_strdup(PQgetvalue(res, r, i_attmissingval));
90279027 tbinfo->attrdefs[j] = NULL; /* fix below */
@@ -16255,6 +16255,10 @@ dumpTableSchema(Archive *fout, const TableInfo *tbinfo)
1625516255 appendPQExpBuffer(q, " COLLATE %s",
1625616256 fmtQualifiedDumpable(coll));
1625716257 }
16258+
16259+ if (tbinfo->attisinvisible[j])
16260+ appendPQExpBufferStr(q, " INVISIBLE");
16261+
1625816262 is_ora_identity = false;
1625916263 }
1626016264 }
@@ -16584,12 +16588,6 @@ dumpTableSchema(Archive *fout, const TableInfo *tbinfo)
1658416588 foreign, qualrelname,
1658516589 fmtId(tbinfo->attnames[j]));
1658616590
16587- /*
16588- * Dump per-column invisible information.
16589- */
16590- if (tbinfo->attisinvisible[j])
16591- appendPQExpBufferStr(q, " INVISIBLE");
16592-
1659316591 /*
1659416592 * Dump per-column statistics information. We only issue an ALTER
1659516593 * TABLE statement if the attstattarget entry for this column is
0 commit comments