model-writtenrun 9820 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Pavel Stehule reported that direct execution of top-level PL/pgSQL blocks bypassed stmt_beg and stmt_end, and proposed using exec_stmt so plugins receive callbacks for every statement #1.
- Pavel submitted a three-call-site patch covering functions, triggers and event triggers, reporting that regression tests passed #2.
- Michael Paquier requested a concrete extension example and then questioned whether existing func_beg and func_end hooks already provided the necessary instrumentation; Pavel explained that treating outer and nested blocks differently forced extensions to duplicate logic across function and statement hooks #3 #5 #6.
- Michael compared callback counts using plpgsql_check, after which Pavel supplied a minimal extension demonstrating that the patch only added the missing outer-block callbacks; Michael accepted that this made the callback sequence more consistent #7 #8 #9.
- After further instrumentation checks for functions, triggers and event triggers, Michael committed #2 unchanged as e0ef136d52 and shared his separate test extension #10 #11.
- The thread ended with Pavel thanking Michael for the commit, with the submitted fix fully landed and no outstanding changes identified #12.