aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-11-03 15:14:50 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-11-03 15:28:36 +0100
commit53977598174652dcb06bc2b26674c29b9ae601cc (patch)
treede208ba17a74617dabb301bfc8a3bd1f28963413 /src/backend/executor/nodeModifyTable.c
parenta58a631b4af0c027c07ea7cc4110a60b5f279ddf (diff)
downloadpostgresql-53977598174652dcb06bc2b26674c29b9ae601cc.tar.gz
postgresql-53977598174652dcb06bc2b26674c29b9ae601cc.zip
Disallow ALTER TABLE ONLY / DROP EXPRESSION
The current implementation cannot handle this correctly, so just forbid it for now. GENERATED clauses must be attached to the column definition and cannot be added later like DEFAULT, so if a child table has a generation expression that the parent does not have, the child column will necessarily be an attlocal column. So to implement ALTER TABLE ONLY / DROP EXPRESSION, we'd need extra code to update attislocal of the direct child tables, somewhat similar to how DROP COLUMN does it, so that the resulting state can be properly dumped and restored. Discussion: https://www.postgresql.org/message-id/flat/15830.1575468847%40sss.pgh.pa.us
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions