Throw ERROR when publish_generated_columns is specified without a value.
authorAmit Kapila <[email protected]>
Tue, 5 Aug 2025 09:21:50 +0000 (09:21 +0000)
committerAmit Kapila <[email protected]>
Tue, 5 Aug 2025 09:21:50 +0000 (09:21 +0000)
commite5d04aedaf3a0e62dc22c42206bd258db24adddc
treea413a6007b03b0c683878b6b84c17517aa55aa73
parent7c3a036f5c6d05657f5e9bd081a7dfcfb3c49639
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 <[email protected]>
Reviewed-by: vignesh C <[email protected]>
Backpatch-through: 18, where it was introduced
Discussion: https://postgr.es/m/CAHut+PsCUCWiEKmB10DxhoPfXbF6jw5RD9ib2LuaQeA_XraW7w@mail.gmail.com
src/backend/commands/publicationcmds.c
src/test/regress/expected/publication.out
src/test/regress/sql/publication.sql