projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54a8abc
)
Fix broken pg_dump code for dumping comments on event triggers.
author
Tom Lane
<
[email protected]
>
Tue, 6 Jan 2015 00:27:09 +0000
(19:27 -0500)
committer
Tom Lane
<
[email protected]
>
Tue, 6 Jan 2015 00:27:09 +0000
(19:27 -0500)
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.
src/bin/pg_dump/pg_dump.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_dump/pg_dump.c
b/src/bin/pg_dump/pg_dump.c
index 69d70904d0142e2fb32febc7c05a329123080774..729fc5462372c92a02fcc63a0c0903c3cf1ae3d0 100644
(file)
--- a/
src/bin/pg_dump/pg_dump.c
+++ b/
src/bin/pg_dump/pg_dump.c
@@
-14432,7
+14432,7
@@
dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
}
appendPQExpBuffer(query, ";\n");
}
- appendPQExpBuffer(labelq, "EVENT TRIGGER %s
",
+ appendPQExpBuffer(labelq, "EVENT TRIGGER %s",
fmtId(evtinfo->dobj.name));
ArchiveEntry(fout, evtinfo->dobj.catId, evtinfo->dobj.dumpId,
@@
-14441,7
+14441,7
@@
dumpEventTrigger(Archive *fout, EventTriggerInfo *evtinfo)
query->data, "", NULL, NULL, 0, NULL, NULL);
dumpComment(fout, labelq->data,
- NULL,
NULL
,
+ NULL,
evtinfo->evtowner
,
evtinfo->dobj.catId, 0, evtinfo->dobj.dumpId);
destroyPQExpBuffer(query);