Improve error message for replication of generated columns.
Amit Kapila <akapila@postgresql.org>
Improve error message for replication of generated columns. Currently, logical replication produces a generic error message when targeting a subscriber-side table column that is either missing or generated. The error message can be misleading for generated columns. This patch introduces a specific error message to clarify the issue when generated columns are involved. Author: Shubham Khanna Reviewed-by: Peter Smith, Vignesh C, Amit Kapila Discussion: https://postgr.es/m/CAHv8RjJBvYtqU7OAofBizOmQOK2Q8h+w9v2_cQWxT_gO7er3Aw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/logical/relation.c | modified | +61 −30 |
| src/test/subscription/t/011_generated.pl | modified | +42 −0 |
Discussion
- Improve the error message for logical replication of regular column to generated column. 30 messages · 2024-11-14 → 2024-11-27