You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Index DDL cascading on partitioned tables introduced a way for ALTERTABLE to be called reentrantly. This caused an an important deficiencyin event trigger support to be exposed: on exiting the reentrant call,the alter table state object was clobbered, causing a crash when theouter alter table tries to finalize its processing. Fix the crash bycreating a stack of event trigger state objects. There are still waysto cause things to misbehave (and probably other crashers) with moreelaborate tricks, but at least it now doesn't crash in the obviousscenario.Backpatch to 9.5, where DDL deparsing of event triggers was introduced.Reported-by: Marco SlotAuthors: Michaël Paquier, Álvaro HerreraDiscussion:https://postgr.es/m/CANNhMLCpi+HQ7M36uPfGbJZEQLyTy7XvX=5EFkpR-b1bo0uJew@mail.gmail.com