Fix the initial sync tables with no columns.
Amit Kapila <akapila@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/logical/tablesync.c | modified | +18 −10 |
| src/test/subscription/t/001_rep_changes.pl | modified | +16 −1 |
Discussion
- BUG #18203: Logical Replication initial sync failure 8 messages · 2023-11-18 → 2023-11-21