pgsql: Fix the initial sync tables with no columns. - Mailing list pgsql-committers

From Amit Kapila
Subject pgsql: Fix the initial sync tables with no columns.
Date
Msg-id E1r5gfd-006eJ5-53@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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/18203-df37fe354b626670@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/eeb0ebad79d9350305d9e111fbac76e20fa4b2fe

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(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Stop the search once the slot for replication origin is found.
Next
From: Bruce Momjian
Date:
Subject: pgsql: doc: remove double-negative in REFRESH MATERIALIZED ... CONCURR