Skip to content

Commit c99e41f

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 5174206 commit c99e41f

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
@@ -14769,7 +14769,7 @@ dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
1476914769
}
1477014770
appendPQExpBufferStr(query, ";\n");
1477114771
}
14772-
appendPQExpBuffer(labelq, "EVENT TRIGGER %s ",
14772+
appendPQExpBuffer(labelq, "EVENT TRIGGER %s",
1477314773
fmtId(evtinfo->dobj.name));
1477414774

1477514775
ArchiveEntry(fout, evtinfo->dobj.catId, evtinfo->dobj.dumpId,
@@ -14778,7 +14778,7 @@ dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
1477814778
query->data, "", NULL, NULL, 0, NULL, NULL);
1477914779

1478014780
dumpComment(fout, labelq->data,
14781-
NULL, NULL,
14781+
NULL, evtinfo->evtowner,
1478214782
evtinfo->dobj.catId, 0, evtinfo->dobj.dumpId);
1478314783

1478414784
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