summaryrefslogtreecommitdiff
path: root/src/include/tsearch/ts_locale.h
diff options
context:
space:
mode:
authorMichael Paquier2025-07-24 06:41:18 +0000
committerMichael Paquier2025-07-24 06:41:18 +0000
commit719dcf3c42260ceebfa2e8f6171a61161737a265 (patch)
treeb31988d6fb882731c6dfa323ebdc2abe58fb6880 /src/include/tsearch/ts_locale.h
parentdf335618ed87eecdef44a95e453e345a55a14ad8 (diff)
Introduce field tracking cached plan type in PlannedStmtHEADmaster
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 'src/include/tsearch/ts_locale.h')
0 files changed, 0 insertions, 0 deletions