postgresql/src/backend
Peter Eisentraut 5d06e99a3c 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
2024-01-04 16:28:54 +01:00
..
access Update copyright for 2024 2024-01-03 20:49:05 -05:00
archive Update copyright for 2024 2024-01-03 20:49:05 -05:00
backup Update copyright for 2024 2024-01-03 20:49:05 -05:00
bootstrap Update copyright for 2024 2024-01-03 20:49:05 -05:00
catalog Track conflict_reason in pg_replication_slots. 2024-01-04 08:26:25 +05:30
commands ALTER TABLE command to change generation expression 2024-01-04 16:28:54 +01:00
executor Fix use of incorrect TupleTableSlot in DISTINCT aggregates 2024-01-04 20:38:25 +13:00
foreign Update copyright for 2024 2024-01-03 20:49:05 -05:00
jit Update copyright for 2024 2024-01-03 20:49:05 -05:00
lib Update copyright for 2024 2024-01-03 20:49:05 -05:00
libpq Update copyright for 2024 2024-01-03 20:49:05 -05:00
main Update copyright for 2024 2024-01-03 20:49:05 -05:00
nodes Update copyright for 2024 2024-01-03 20:49:05 -05:00
optimizer Update copyright for 2024 2024-01-03 20:49:05 -05:00
parser ALTER TABLE command to change generation expression 2024-01-04 16:28:54 +01:00
partitioning Update copyright for 2024 2024-01-03 20:49:05 -05:00
po Update copyright for 2024 2024-01-03 20:49:05 -05:00
port Update copyright for 2024 2024-01-03 20:49:05 -05:00
postmaster Update copyright for 2024 2024-01-03 20:49:05 -05:00
regex Update copyright for 2024 2024-01-03 20:49:05 -05:00
replication Track conflict_reason in pg_replication_slots. 2024-01-04 08:26:25 +05:30
rewrite Update copyright for 2024 2024-01-03 20:49:05 -05:00
snowball Update copyright for 2024 2024-01-03 20:49:05 -05:00
statistics Update copyright for 2024 2024-01-03 20:49:05 -05:00
storage Update copyright for 2024 2024-01-03 20:49:05 -05:00
tcop Update copyright for 2024 2024-01-03 20:49:05 -05:00
tsearch Update copyright for 2024 2024-01-03 20:49:05 -05:00
utils Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
Makefile Update copyright for 2024 2024-01-03 20:49:05 -05:00
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls.mk Remove distprep 2023-11-06 15:18:04 +01:00