PL/pgSQL: Add statement ID to statement structures

This can be used by a profiler as the index for an array of
per-statement metrics.

Author: Pavel Stehule <pavel.steh...@gmail.com>
Reviewed-by: Peter Eisentraut <peter.eisentr...@2ndquadrant.com>
Discussion: 
https://www.postgresql.org/message-id/flat/CAFj8pRDRCjN6rpM9ZccU7Ta_afsNX7mg9=n34f+r445nt9v...@mail.gmail.com/

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bbd5c207b960dd072445a3547f16abea0c27f726

Modified Files
--------------
src/pl/plpgsql/src/pl_comp.c |  6 ++++++
src/pl/plpgsql/src/pl_gram.y | 33 +++++++++++++++++++++++++++++++++
src/pl/plpgsql/src/plpgsql.h | 39 +++++++++++++++++++++++++++++++++++++++
3 files changed, 78 insertions(+)

Reply via email to