Robert Haas <rhaas@postgresql.org> writes:
> Perform less setup work for AFTER triggers at transaction start.
Perhaps I'm confused, but doesn't AfterTriggerEnlargeQueryState()
need to ensure there are at least query_depth + 1 entries in the
arrays? Not just query_depth?
regards, tom lane