Tighten check for generated column in partition key expression A generated column may end up being part of the partition key expression, if it's specified as an expression e.g. "(<generated column name>)" or if the partition key expression contains a whole-row reference, even though we do not allow a generated column to be part of partition key expression. Fix this hole.
Co-authored-by: jian he <[email protected]> Co-authored-by: Ashutosh Bapat <[email protected]> Reviewed-by: Fujii Masao <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/CACJufxF%3DWDGthXSAQr9thYUsfx_1_t9E6N8tE3B8EqXcVoVfQw%40mail.gmail.com Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/04345d7a423ab60016824e672da578941841b7d1 Modified Files -------------- src/backend/commands/tablecmds.c | 86 ++++++++++++++++++--------------- src/test/regress/expected/generated.out | 15 ++++++ src/test/regress/sql/generated.sql | 3 ++ 3 files changed, 66 insertions(+), 38 deletions(-)
