Skip to content

Commit 3e4c8db

Browse files
committed
Avoid core dump in pg_dump when dumping from pre-8.3 server.
Commit f0e21f2 missed adding a tgisinternal output column to getTriggers' query for pre-8.3 servers. Back-patch to v11, like that commit.
1 parent b5152e3 commit 3e4c8db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8049,6 +8049,7 @@ getTriggers(Archive *fout, TableInfo tblinfo[], int numTables)
80498049
"SELECT tgname, "
80508050
"tgfoid::pg_catalog.regproc AS tgfname, "
80518051
"tgtype, tgnargs, tgargs, tgenabled, "
8052+
"false as tgisinternal, "
80528053
"tgisconstraint, tgconstrname, tgdeferrable, "
80538054
"tgconstrrelid, tginitdeferred, tableoid, oid, "
80548055
"tgconstrrelid::pg_catalog.regclass AS tgconstrrelname "

0 commit comments

Comments
 (0)