Re: [PATCH] Optionally record Plan IDs to track plan changes for a query
В списке pgsql-hackers по дате отправления:
| От | Jeremy Schneider |
|---|---|
| Тема | Re: [PATCH] Optionally record Plan IDs to track plan changes for a query |
| Дата | |
| Msg-id | 20250106223525.13677921@jeremy-ThinkPad-T430s обсуждение исходный текст |
| Список | pgsql-hackers |
On Thu, 2 Jan 2025 12:46:04 -0800 Lukas Fittl <lukas@fittl.com> wrote: > this proposed patch set adds: > > 1. An updated in-core facility to optionally track Plan IDs based on > hashing the plan nodes during the existing treewalk in setrefs.c - > controlled by the new "compute_plan_id" GUC > 2. An example user of plan IDs with a new pg_stat_plans extension in > contrib, that also records the first plan text with EXPLAIN (COSTS > OFF) > > My overall perspective is that (1) is best done in-core to keep > overhead low, whilst (2) could be done outside of core (or merged > with a future pg_stat_statements) and is included here mainly for > illustration purposes. And 2025 is starting with a bang! Nice to see this email! Being able to collect telemetry that indicates when plan changes happened would be very useful. The specifics of how a plan ID is generated are going to have some edge cases (as you noted) I concur that the ideal place for this to eventually land would be alongside queryid in pg_stat_activity -Jeremy
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера