model-writtenrun 9752 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Pavel Stehule proposed unique statement IDs within each PL/pgSQL function to support plpgsql_check profiling across sessions, since line numbers cannot uniquely identify statements, and supplied the initial implementation in #1.
- Peter Eisentraut requested reserving zero and documenting the field in #2, then suggested unsigned IDs in #4; Pavel incorporated these changes in #3 and #5, also correcting the statement-field layout for loops.
- Peter identified statement constructors lacking IDs in #6; Pavel added the missing PERFORM assignment in #7 and explained that temporary executor-created statements should retain zero because they bypass normal statement dispatch and should not be counted.
- Peter committed #7 as bbd5c207b9 with light comment, placement, and formatting edits, announcing completion in #8.
- After the commit, Tom Lane questioned why debug dumps in pl_funcs.c omitted the new IDs in #9, and Pavel offered to prepare a follow-up patch in #10.
- The statement-ID implementation had landed, but debug-dump support remained unresolved at #11, where Pavel described formatting complications and proposed alternative inline examples for displaying IDs.