aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-08-01 17:39:07 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-08-01 17:39:07 -0400
commit7326a7d63801673d3569def65cb7955d6486f254 (patch)
treefe6dac63865119743112e0af81c12fc2e487d2a3 /src/backend/executor
parent34295b87fbbcbaf26280f53f006b20971dbad1f3 (diff)
downloadpostgresql-7326a7d63801673d3569def65cb7955d6486f254.tar.gz
postgresql-7326a7d63801673d3569def65cb7955d6486f254.zip
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 <davecramer@gmail.com> Reviewed-by: Andres Freund <andres@anarazel.de> Discussion: https://postgr.es/m/CADK3HHLVkeRe1v4P02-5hj55H3_yJg3AEtpXyEY5T3wuzO2jSg@mail.gmail.com
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions