Fix the logical replication from HEAD to lower versions.
authorAmit Kapila <akapila@postgresql.org>
Sat, 26 Sep 2020 04:38:00 +0000 (10:08 +0530)
committerAmit Kapila <akapila@postgresql.org>
Sat, 26 Sep 2020 04:43:51 +0000 (10:13 +0530)
commit079d0cacf4fefc326bf776ecc2df5dba995f50de
tree260e5f6da9408c5df5d654d34c12d9bbe76102fc
parentdee663f7843902535a15ae366cede8b4089f1144
Fix the logical replication from HEAD to lower versions.

Commit 464824323e changed the logical replication protocol to allow the
streaming of in-progress transactions and used the new version of protocol
irrespective of the server version. Use the appropriate version of the
protocol based on the server version.

Reported-by: Ashutosh Sharma
Author: Dilip Kumar
Reviewed-by: Ashutosh Sharma and Amit Kapila
Discussion: https://postgr.es/m/CAE9k0P=9OpXcNrcU5Gsvd5MZ8GFpiN833vNHzX6Uc=8+h1ft1Q@mail.gmail.com
src/backend/replication/logical/worker.c
src/backend/replication/pgoutput/pgoutput.c
src/include/replication/logicalproto.h