Improve the error message introduced in commit 87ce27de696.
authorAmit Kapila <akapila@postgresql.org>
Mon, 9 Dec 2024 03:41:45 +0000 (09:11 +0530)
committerAmit Kapila <akapila@postgresql.org>
Mon, 9 Dec 2024 03:41:45 +0000 (09:11 +0530)
commit2d0152d6147bb7d12eb120b7e749a323bf91aa6e
tree140f898479feb4b882113e95264005dcc29ef3de
parentda99fedf8c1726326868d37a0e886caf9107d040
Improve the error message introduced in commit 87ce27de696.

The error detail message "Replica identity consists of an unpublished
generated column." implies that the entire replica identity is made up of
an unpublished generated column which may not be the case.

Reported-by: Peter Smith
Author: Shlok Kyal
Reviewed-by: Peter Smith, Amit Kapila
Discussion: https://postgr.es/m/CAHut+PuwMhKx0PhOA4APhJTLoBGNykbeCQpr_CuwGT-SkswG5w@mail.gmail.com
src/backend/executor/execReplication.c
src/test/regress/expected/publication.out