aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-01-08 09:42:53 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-01-08 09:42:53 -0500
commit4ac8aaa36fa24639989849c8109f8b52e9544fd1 (patch)
treea4fbbe664d8523aa819567fd15c78e84d4f23cf1 /src/tutorial/basics.source
parent30a3e772b4013d6593e4141cebd5ebfaff4d71a8 (diff)
downloadpostgresql-4ac8aaa36fa24639989849c8109f8b52e9544fd1.tar.gz
postgresql-4ac8aaa36fa24639989849c8109f8b52e9544fd1.zip
Fix handling of generated columns in ALTER TABLE.
ALTER TABLE failed if a column referenced in a GENERATED expression had been added or changed in type earlier in the ALTER command. That's because the GENERATED expression needs to be evaluated against the table's updated tuples, but it was being evaluated against the original tuples. (Fortunately the executor has adequate cross-checks to notice the mismatch, so we just got an obscure error message and not anything more dangerous.) Per report from Andreas Joseph Krogh. Back-patch to v12 where GENERATED was added. Discussion: https://postgr.es/m/VisenaEmail.200.231b0a41523275d0.16ea7f800c7@tc7-visena
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions