postgresql/src
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
..
backend Fix logical replication slot initialization 2018-08-01 17:47:15 -04:00
bin pg_upgrade: fix --check for live source server checks 2018-07-31 18:10:06 -04:00
common Add proper errcodes to new error messages for read() failures 2018-07-23 09:37:36 +09:00
fe_utils Post-feature-freeze pgindent run. 2018-04-26 14:47:16 -04:00
include Allow multi-inserts during COPY into a partitioned table 2018-08-01 10:23:09 +02:00
interfaces Fix libpq's code for searching .pgpass; rationalize empty-list-item cases. 2018-08-01 12:30:36 -04:00
makefiles Provide for contrib and pgxs modules to install include files. 2018-07-31 20:07:39 +01:00
pl Provide plpgsql tests for cases involving record field changes. 2018-07-26 18:18:37 -04:00
port Guard against rare RAND_bytes() failures in pg_strong_random(). 2018-07-20 08:55:44 +01:00
template Force "restrict" not to be used when compiling with xlc. 2017-10-13 12:15:06 -07:00
test Allow multi-inserts during COPY into a partitioned table 2018-08-01 10:23:09 +02:00
timezone Update time zone data files to tzdata release 2018e. 2018-05-09 13:56:22 -04:00
tools Provide for contrib and pgxs modules to install include files. 2018-07-31 20:07:39 +01:00
tutorial Deduplicate "invalid input syntax" messages for various types. 2018-07-22 14:58:01 -07:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Ensure we build generated headers at the start of some more cases. 2018-07-30 18:04:39 -04:00
Makefile.shlib Prevent accidental linking of system-supplied copies of libpq.so etc. 2018-04-03 16:26:05 -04:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00