postgresql/src/test/subscription
Amit Kapila f672df5fdd Remove the unnecessary PrepareWrite in pgoutput.
This issue exists from the inception of this code (PG-10) but got exposed
by the recent commit ce0fdbfe97 where we are using origins in tablesync
workers. The problem was that we were sometimes sending the prepare_write
('w') message but then the actual message was not being sent and on the
subscriber side, we always expect a message after prepare_write message
which led to this bug.

I refrained from backpatching this because there is no way in the core
code to hit this prior to commit ce0fdbfe97 and we haven't received any
complaints so far.

Reported-by: Erik Rijkers
Author: Amit Kapila and Vignesh C
Tested-by: Erik Rijkers
Discussion: https://postgr.es/m/1295168140.139428.1613133237154@webmailclassic.xs4all.nl
2021-02-16 07:26:50 +05:30
..
t Remove the unnecessary PrepareWrite in pgoutput. 2021-02-16 07:26:50 +05:30
.gitignore Logical replication 2017-01-20 09:04:49 -05:00
Makefile Update copyright for 2021 2021-01-02 13:06:25 -05:00
README Clarify the README files for the various separate TAP-based test suites. 2018-06-19 19:30:50 -04:00

src/test/subscription/README

Regression tests for subscription/logical replication
=====================================================

This directory contains a test suite for subscription/logical replication.

Running the tests
=================

NOTE: You must have given the --enable-tap-tests argument to configure.

Run
    make check
or
    make installcheck
You can use "make installcheck" if you previously did "make install"
(including installing the hstore extension).  In that case, the code
in the installation tree is tested.  With "make check", a temporary
installation tree is built from the current sources and then tested.

Either way, this test initializes, starts, and stops several test Postgres
clusters.