summaryrefslogtreecommitdiff
path: root/src/backend/replication/logical/launcher.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-04-14 13:58:46 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-04-14 13:58:46 -0400
commit887227a1cc861d87ca0f175cf8bd1447554090eb (patch)
treef0cc0f4315bd0489083742d4f7a3285fa749f2e9 /src/backend/replication/logical/launcher.c
parent25371a72b95aab43b0a3547ead4d3286c1128351 (diff)
Add option to modify sync commit per subscription
This also changes default behaviour of subscription workers to synchronous_commit = off. Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
Diffstat (limited to 'src/backend/replication/logical/launcher.c')
-rw-r--r--src/backend/replication/logical/launcher.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/backend/replication/logical/launcher.c b/src/backend/replication/logical/launcher.c
index 7ba239c02c1..2d663f6308f 100644
--- a/src/backend/replication/logical/launcher.c
+++ b/src/backend/replication/logical/launcher.c
@@ -129,17 +129,13 @@ get_subscription_list(void)
*/
oldcxt = MemoryContextSwitchTo(resultcxt);
- sub = (Subscription *) palloc(sizeof(Subscription));
+ sub = (Subscription *) palloc0(sizeof(Subscription));
sub->oid = HeapTupleGetOid(tup);
sub->dbid = subform->subdbid;
sub->owner = subform->subowner;
sub->enabled = subform->subenabled;
sub->name = pstrdup(NameStr(subform->subname));
-
/* We don't fill fields we are not interested in. */
- sub->conninfo = NULL;
- sub->slotname = NULL;
- sub->publications = NIL;
res = lappend(res, sub);
MemoryContextSwitchTo(oldcxt);