]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix the initial sync tables with no columns.
authorAmit Kapila <akapila@postgresql.org>
Wed, 22 Nov 2023 05:57:38 +0000 (11:27 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 22 Nov 2023 05:57:38 +0000 (11:27 +0530)
commit1b6da28e0668eb977dcab6987d192ddedf32b752
treef4fb5406ac6a8864017c79269d55fea899820c6e
parent9bbdffadf757346b64973e568d2e6ef2b755d99d
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