pgsql: PL/pgSQL: Add statement ID to statement structures

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: PL/pgSQL: Add statement ID to statement structures
Date: 2019-01-24 21:25:29
Message-ID: E1gmmV7-0003jC-Eu@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)stehule(at)gmail(dot)com>
Reviewed-by: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/CAFj8pRDRCjN6rpM9ZccU7Ta_afsNX7mg9=n34F+r445Nt9v2tA(at)mail(dot)gmail(dot)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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2019-01-24 21:47:36 pgsql: Remove infinite-loop hazards in ecpg test suite.
Previous Message Peter Eisentraut 2019-01-24 20:59:45 pgsql: Fix whitespace