aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-07-20 13:40:15 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-07-20 13:40:15 -0400
commit0d712ec12a904eb517a572581ca607d4ff9c19c1 (patch)
treeaa926f7670989e8fa0ea72fc086de6ea996f877e /src/backend/utils/adt/arrayfuncs.c
parente8dfe0430fad922948f56889a84af41da532c853 (diff)
downloadpostgresql-0d712ec12a904eb517a572581ca607d4ff9c19c1.tar.gz
postgresql-0d712ec12a904eb517a572581ca607d4ff9c19c1.zip
Correctly check updatability of columns targeted by INSERT...DEFAULT.
If a view has some updatable and some non-updatable columns, we failed to verify updatability of any columns for which an INSERT or UPDATE on the view explicitly specifies a DEFAULT item (unless the view has a declared default for that column, which is rare anyway, and one would almost certainly not write one for a non-updatable column). This would lead to an unexpected "attribute number N not found in view targetlist" error rather than the intended error. Per bug #18546 from Alexander Lakhin. This bug is old, so back-patch to all supported branches. Discussion: https://postgr.es/m/18546-84a292e759a9361d@postgresql.org
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions