PL/pgSQL: Add statement ID to statement structures

Peter Eisentraut <peter@eisentraut.org>

Commit: bbd5c207b960dd072445a3547f16abea0c27f726
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2019-01-24T21:23:12Z
Releases: 12.0
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.stehule@gmail.com>
Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/flat/CAFj8pRDRCjN6rpM9ZccU7Ta_afsNX7mg9=n34F+r445Nt9v2tA@mail.gmail.com/

Files

PathChange+/−
src/pl/plpgsql/src/pl_comp.c modified +6 −0
src/pl/plpgsql/src/pl_gram.y modified +33 −0
src/pl/plpgsql/src/plpgsql.h modified +39 −0

Discussion

Cited messages not in the archive: CAFj8pRDRCjN6rpM9ZccU7Ta_afsNX7mg9=n34F+r445Nt9v2tA@mail.gmail.com/