aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2024-01-04 15:45:35 +0100
committerPeter Eisentraut <peter@eisentraut.org>2024-01-04 16:28:54 +0100
commit5d06e99a3cfc23bbc217b4d78b8c070ad52f720e (patch)
treef19ee2c99bdfec654b28f4e6afdbae26c5ff0eb0 /src/backend/utils/adt/arrayfuncs.c
parentae69c4fcf1337af399a788ab8d96af540bd1cd8e (diff)
downloadpostgresql-5d06e99a3cfc23bbc217b4d78b8c070ad52f720e.tar.gz
postgresql-5d06e99a3cfc23bbc217b4d78b8c070ad52f720e.zip
ALTER TABLE command to change generation expression
This adds a new ALTER TABLE subcommand ALTER COLUMN ... SET EXPRESSION that changes the generation expression of a generated column. The syntax is not standard but was adapted from other SQL implementations. This command causes a table rewrite, using the usual ALTER TABLE mechanisms. The implementation is similar to and makes use of some of the infrastructure of the SET DATA TYPE subcommand (for example, rebuilding constraints and indexes afterwards). The new command requires a new pass in AlterTablePass, and the ADD COLUMN pass had to be moved earlier so that combinations of ADD COLUMN and SET EXPRESSION can work. Author: Amul Sul <sulamul@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/CAAJ_b94yyJeGA-5M951_Lr+KfZokOp-2kXicpmEhi5FXhBeTog@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions