Skip to content

Commit bb1e242

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 54a8abc commit bb1e242

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
@@ -14432,7 +14432,7 @@ dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
1443214432
}
1443314433
appendPQExpBuffer(query, ";\n");
1443414434
}
14435-
appendPQExpBuffer(labelq, "EVENT TRIGGER %s ",
14435+
appendPQExpBuffer(labelq, "EVENT TRIGGER %s",
1443614436
fmtId(evtinfo->dobj.name));
1443714437

1443814438
ArchiveEntry(fout, evtinfo->dobj.catId, evtinfo->dobj.dumpId,
@@ -14441,7 +14441,7 @@ dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
1444114441
query->data, "", NULL, NULL, 0, NULL, NULL);
1444214442

1444314443
dumpComment(fout, labelq->data,
14444-
NULL, NULL,
14444+
NULL, evtinfo->evtowner,
1444514445
evtinfo->dobj.catId, 0, evtinfo->dobj.dumpId);
1444614446

1444714447
destroyPQExpBuffer(query);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy