summaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/pg_dump/pg_dump.c')
-rw-r--r--src/bin/pg_dump/pg_dump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 4f1a5caee4d..662d43a5798 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -5346,6 +5346,9 @@ getTriggers(TableInfo tblinfo[], int numTables)
tginfo = (TriggerInfo *) malloc(ntups * sizeof(TriggerInfo));
+ tbinfo->numTriggers = ntups;
+ tbinfo->triggers = tginfo;
+
for (j = 0; j < ntups; j++)
{
tginfo[j].dobj.objType = DO_TRIGGER;