Throw ERROR when publish_generated_columns is specified without a value.

Previously, specifying the publication option 'publish_generated_columns'
without an explicit value would incorrectly default to 'stored', which is
not the intended behavior.

This patch fixes the issue by raising an ERROR when no value is provided
for 'publish_generated_columns', ensuring that users must explicitly
specify a valid option.

Author: Peter Smith <smithpb2...@gmail.com>
Reviewed-by: vignesh C <vignes...@gmail.com>
Backpatch-through: 18, where it was introduced
Discussion: 
https://postgr.es/m/cahut+pscucwiekmb10dxhopfxbf6jw5rd9ib2luaqea_xra...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/c9a5860f7a56cc639d6a73519b8b2a00d26d960c

Modified Files
--------------
src/backend/commands/publicationcmds.c    | 20 ++++++++++----------
src/test/regress/expected/publication.out | 15 ++++-----------
src/test/regress/sql/publication.sql      |  7 ++-----
3 files changed, 16 insertions(+), 26 deletions(-)

Reply via email to