diff options
author | Michael Paquier | 2025-07-24 06:41:18 +0000 |
---|---|---|
committer | Michael Paquier | 2025-07-24 06:41:18 +0000 |
commit | 719dcf3c42260ceebfa2e8f6171a61161737a265 (patch) | |
tree | b31988d6fb882731c6dfa323ebdc2abe58fb6880 /contrib/btree_gist/expected/float8.out | |
parent | df335618ed87eecdef44a95e453e345a55a14ad8 (diff) |
PlannedStmt gains a new field, called CachedPlanType, able to track if a
given plan tree originates from the cache and if we are dealing with a
generic or custom cached plan.
This field can be used for monitoring or statistical purposes, in the
executor hooks, for example, based on the planned statement attached to
a QueryDesc. A patch is under discussion for pg_stat_statements to
provide an equivalent of the counters in pg_prepared_statements for
custom and generic plans, to provide a more global view of such data, as
this data is now restricted to the current session.
The concept introduced in this commit is useful on its own, and has been
extracted from a larger patch by the same author.
Author: Sami Imseih <samimseih@gmail.com>
Reviewed-by: Andrei Lepikhov <lepihov@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CAA5RZ0uFw8Y9GCFvafhC=OA8NnMqVZyzXPfv_EePOt+iv1T-qQ@mail.gmail.com
Diffstat (limited to 'contrib/btree_gist/expected/float8.out')
0 files changed, 0 insertions, 0 deletions