Skip to content

Commit 0b5f557

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 6a262ba commit 0b5f557

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
@@ -7919,6 +7919,7 @@ getTriggers(Archive *fout, TableInfo tblinfo[], int numTables)
79197919
"SELECT tgname, "
79207920
"tgfoid::pg_catalog.regproc AS tgfname, "
79217921
"tgtype, tgnargs, tgargs, tgenabled, "
7922+
"false as tgisinternal, "
79227923
"tgisconstraint, tgconstrname, tgdeferrable, "
79237924
"tgconstrrelid, tginitdeferred, tableoid, oid, "
79247925
"tgconstrrelid::pg_catalog.regclass AS tgconstrrelname "

0 commit comments

Comments
 (0)