Fix the initial sync tables with no columns.

The copy command formed for initial sync was using parenthesis for tables
with no columns leading to syntax error. This patch avoids adding
parenthesis for such tables.

Reported-by: Justin G
Author: Vignesh C
Reviewed-by: Peter Smith, Amit Kapila
Backpatch-through: 15
Discussion: http://postgr.es/m/[email protected]

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/57aae65aee2626143055349954024b678c92bb11

Modified Files
--------------
src/backend/replication/logical/tablesync.c | 28 ++++++++++++++++++----------
src/test/subscription/t/001_rep_changes.pl  | 17 ++++++++++++++++-
2 files changed, 34 insertions(+), 11 deletions(-)

Reply via email to