Feed ObjectAddress to event triggers for ALTER TABLE ATTACH/DETACH
authorMichael Paquier <michael@paquier.xyz>
Sun, 31 Jul 2022 04:04:43 +0000 (13:04 +0900)
committerMichael Paquier <michael@paquier.xyz>
Sun, 31 Jul 2022 04:04:43 +0000 (13:04 +0900)
commit43231423dafc0cedcb52169465589b0d1d3c47d2
tree6b706b5f33ef4d7b370e197ac488aedb5d91fe54
parent07ff701dbd53aeb86dd5a09a8b943b3782d4b67f
Feed ObjectAddress to event triggers for ALTER TABLE ATTACH/DETACH

These flavors of ALTER TABLE were already shaped to report the
ObjectAddress of the partition attached or detached, but this data was
not added to what is collected for event triggers.  The tests of
test_ddl_deparse are updated to show the modification in the data
reported.

Author: Hou Zhijie
Reviewed-by: Álvaro Herrera, Amit Kapila, Hayato Kuroda, Michael Paquier
Discussion: https://postgr.es/m/OS0PR01MB571626984BD099DADF53F38394899@OS0PR01MB5716.jpnprd01.prod.outlook.com
src/backend/commands/tablecmds.c
src/test/modules/test_ddl_deparse/expected/alter_table.out