diff options
| author | Tom Lane | 2021-10-16 19:02:55 +0000 |
|---|---|---|
| committer | Tom Lane | 2021-10-16 19:02:55 +0000 |
| commit | 40dfac4fc4776213a02291f13046d36e318f2629 (patch) | |
| tree | 5f94fae8e87e0ebbfcedb9580fd849a2c3e94608 /src | |
| parent | e2ff7d9a83d4b489806281dc6dfce88510b40ad7 (diff) | |
Avoid core dump in pg_dump when dumping from pre-8.3 server.
Commit f0e21f2f6 missed adding a tgisinternal output column
to getTriggers' query for pre-8.3 servers. Back-patch to v11,
like that commit.
Diffstat (limited to 'src')
| -rw-r--r-- | src/bin/pg_dump/pg_dump.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 5deb347f343..6ec524f8e66 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -8082,6 +8082,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 " |
