postgresql/contrib/test_decoding
Alvaro Herrera c40489e449 Fix logical replication slot initialization
This was broken in commit 9c7d06d606, 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
2018-08-01 17:47:15 -04:00
..
expected Fix logical replication slot initialization 2018-08-01 17:47:15 -04:00
specs Reduce cost of test_decoding's new oldest_xmin test 2018-07-05 16:37:32 -04:00
sql Fix logical replication slot initialization 2018-08-01 17:47:15 -04:00
.gitignore Improve isolation tests infrastructure. 2017-03-14 15:56:17 -07:00
Makefile Fix "base" snapshot handling in logical decoding 2018-06-26 16:48:10 -04:00
logical.conf Introduce logical decoding. 2014-03-03 16:32:18 -05:00
test_decoding.c Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00