Feed ObjectAddress to event triggers for ALTER TABLE ATTACH/DETACH

Michael Paquier <michael@paquier.xyz>

Commit: 43231423dafc0cedcb52169465589b0d1d3c47d2
Author: Michael Paquier <michael@paquier.xyz>
Date: 2022-07-31T04:04:43Z
Releases: 16.0
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

Files

Discussion