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:10 +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 dd77b50bcd37327e354cc4c2ed942479da921832..5680901630cae02b418b21de3735757fb62d63ed 100644 (file)
@@ -7919,6 +7919,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 "