Avoid core dump in pg_dump when dumping from pre-8.3 server.
authorTom Lane
Sat, 16 Oct 2021 19:02:55 +0000 (15:02 -0400)
committerTom Lane
Sat, 16 Oct 2021 19:03:05 +0000 (15:03 -0400)
Commit f0e21f2f6 missed adding a tgisinternal output column
to getTriggers' query for pre-8.3 servers.  Back-patch to v11,
like that commit.

src/bin/pg_dump/pg_dump.c

index 7a9f9396a6e054d37e6f46339a80691094feca18..d9940dc4e87ea9095e1787efe60c04a70254d07b 100644 (file)
@@ -8049,6 +8049,7 @@ getTriggers(Archive *fout, TableInfo tblinfo[], int numTables)
                              "SELECT tgname, "
                              "tgfoid::pg_catalog.regproc AS tgfname, "
                              "tgtype, tgnargs, tgargs, tgenabled, "
+                             "false as tgisinternal, "
                              "tgisconstraint, tgconstrname, tgdeferrable, "
                              "tgconstrrelid, tginitdeferred, tableoid, oid, "
                              "tgconstrrelid::pg_catalog.regclass AS tgconstrrelname "