Fix the initial sync tables with no columns.
authorAmit Kapila <akapila@postgresql.org>
Wed, 22 Nov 2023 06:14:14 +0000 (11:44 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 22 Nov 2023 06:14:14 +0000 (11:44 +0530)
commiteeb0ebad79d9350305d9e111fbac76e20fa4b2fe
tree2f3c3cd7a70ef9d16ad4ceacfb49436b8cdb9d9d
parentff68cc6f3bf08546802216e0b9d28ad1d4be7e70
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
src/backend/replication/logical/tablesync.c
src/test/subscription/t/001_rep_changes.pl