diff options
author | Amit Kapila <akapila@postgresql.org> | 2025-01-23 15:28:37 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2025-01-23 15:28:37 +0530 |
commit | e65dbc9927fb86aa3c8a914ede6a6ae934384f5a (patch) | |
tree | baf5c64867d7376c40135fc115860c1339087204 /src/backend/utils/cache/relcache.c | |
parent | eef4a33f62f7300765b5ffa8c966fa2fba50d176 (diff) | |
download | postgresql-e65dbc9927fb86aa3c8a914ede6a6ae934384f5a.tar.gz postgresql-e65dbc9927fb86aa3c8a914ede6a6ae934384f5a.zip |
Change publication's publish_generated_columns option type to enum.
The current boolean publish_generated_columns option only supports a
binary choice, which is insufficient for future enhancements where
generated columns can be of different types (e.g., stored or virtual). The
supported values for the publish_generated_columns option are 'none' and
'stored'.
Author: Vignesh C <vignesh21@gmail.com>
Reviewed-by: Peter Smith <smithpb2250@gmail.com>
Reviewed-by: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Discussion: https://postgr.es/m/d718d219-dd47-4a33-bb97-56e8fc4da994@eisentraut.org
Discussion: https://postgr.es/m/B80D17B2-2C8E-4C7D-87F2-E5B4BE3C069E@gmail.com
Diffstat (limited to 'src/backend/utils/cache/relcache.c')
-rw-r--r-- | src/backend/utils/cache/relcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c index 43219a9629c..ee39d085ebe 100644 --- a/src/backend/utils/cache/relcache.c +++ b/src/backend/utils/cache/relcache.c @@ -5820,7 +5820,7 @@ RelationBuildPublicationDesc(Relation relation, PublicationDesc *pubdesc) if ((pubform->pubupdate || pubform->pubdelete) && pub_contains_invalid_column(pubid, relation, ancestors, pubform->pubviaroot, - pubform->pubgencols, + pubform->pubgencols_type, &invalid_column_list, &invalid_gen_col)) { |