pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve error message for replication of generated columns.
Date: Wed, 27 Nov 2024 03:51:29 +0000
Message-ID: <E1tG95N-003hgd-Pc@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8fcd80258bcf43dab93d877a5de0ce3f4d2bd471

Modified Files
--------------
src/backend/replication/logical/relation.c | 91 ++++++++++++++++++++----------
src/test/subscription/t/011_generated.pl   | 42 ++++++++++++++
2 files changed, 103 insertions(+), 30 deletions(-)



Message-ID: <E1tG95N-003hgd-Pc@gemulon.postgresql.org>
Permalink:  ../E1tG95N-003hgd-Pc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tG95N-003hgd-Pc@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akapila@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Improve error message for replication of generated columns.
  In-Reply-To: <E1tG95N-003hgd-Pc@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox