diff options
author | Alvaro Herrera | 2018-08-01 21:39:07 +0000 |
---|---|---|
committer | Alvaro Herrera | 2018-08-01 21:47:15 +0000 |
commit | c40489e449ea08e154cd62fa055785873f7bdac8 (patch) | |
tree | c97f4789aa534001c9ca479d0a89570066375e87 /src/backend/executor/nodeMergeAppend.c | |
parent | 91bc213d90c5a8f2b2e162d4ecf09b9301027ceb (diff) |
Fix logical replication slot initialization
This was broken in commit 9c7d06d60680, which inadvertently gave the
wrong value to fast_forward in one StartupDecodingContext call. Fix by
flipping the value. Add a test for the obvious error, namely trying to
initialize a replication slot with an nonexistent output plugin.
While at it, move the CreateDecodingContext call earlier, so that any
errors are reported before sending the CopyBoth message.
Author: Dave Cramer <[email protected]>
Reviewed-by: Andres Freund <[email protected]>
Discussion: https://postgr.es/m/CADK3HHLVkeRe1v4P02-5hj55H3_yJg3AEtpXyEY5T3wuzO2jSg@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeMergeAppend.c')
0 files changed, 0 insertions, 0 deletions