aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeProjectSet.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-06-14 14:57:22 +0900
committerMichael Paquier <michael@paquier.xyz>2021-06-14 14:57:22 +0900
commit2d689babe3cb50dcb29f6ed595a61d56e518c0d8 (patch)
tree49069eccb9bbdfc801b5b27e5a23b3e55ab12bce /src/backend/executor/nodeProjectSet.c
parentdbab0c07e5ba1f19a991da2d72972a8fe9a41bda (diff)
downloadpostgresql-2d689babe3cb50dcb29f6ed595a61d56e518c0d8.tar.gz
postgresql-2d689babe3cb50dcb29f6ed595a61d56e518c0d8.zip
Improve handling of dropped objects in pg_event_trigger_ddl_commands()
An object found as dropped when digging into the list of objects returned by pg_event_trigger_ddl_commands() could cause a cache lookup error, as the calls grabbing for the object address and the type name would fail if the object was missing. Those lookup errors could be seen with combinations of ALTER TABLE sub-commands involving identity columns. The lookup logic is changed in this code path to get a behavior similar to any other SQL-callable function by ignoring objects that are not found, taking advantage of 2a10fdc. The back-branches are not changed, as they require this commit that is too invasive for stable branches. While on it, add test cases to exercise event triggers with identity columns, and stress more cases with the event ddl_command_end for relations. Author: Sven Klemm, Aleksander Alekseev, Michael Paquier Discussion: https://postgr.es/m/CAMCrgp2R1cEXU53iYKtW6yVEp2_yKUz+z=3-CTrYpPP+xryRtg@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeProjectSet.c')
0 files changed, 0 insertions, 0 deletions