Content-Length: 274841 | pFad | http://github.com/postgrespro/postgres/commit/adfc157dd91471e995f3aa72e0fb5b50ecd93575

49 Fix broken pg_dump code for dumping comments on event triggers. · postgrespro/postgres@adfc157 · GitHub
Skip to content

Commit adfc157

Browse files
committed
Fix broken pg_dump code for dumping comments on event triggers.
This never worked, I think. Per report from Marc Munro. In passing, fix funny spacing in the COMMENT ON command as a result of excess space in the "label" string.
1 parent 3c9e4cd commit adfc157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15097,7 +15097,7 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo)
1509715097
}
1509815098
appendPQExpBufferStr(query, ";\n");
1509915099
}
15100-
appendPQExpBuffer(labelq, "EVENT TRIGGER %s ",
15100+
appendPQExpBuffer(labelq, "EVENT TRIGGER %s",
1510115101
fmtId(evtinfo->dobj.name));
1510215102

1510315103
ArchiveEntry(fout, evtinfo->dobj.catId, evtinfo->dobj.dumpId,
@@ -15106,7 +15106,7 @@ dumpEventTrigger(Archive *fout, DumpOptions *dopt, EventTriggerInfo *evtinfo)
1510615106
query->data, "", NULL, NULL, 0, NULL, NULL);
1510715107

1510815108
dumpComment(fout, dopt, labelq->data,
15109-
NULL, NULL,
15109+
NULL, evtinfo->evtowner,
1511015110
evtinfo->dobj.catId, 0, evtinfo->dobj.dumpId);
1511115111

1511215112
destroyPQExpBuffer(query);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/adfc157dd91471e995f3aa72e0fb5b50ecd93575

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy