From: | Lukas Fittl <lukas(at)fittl(dot)com> |
---|---|
To: | Artem Gavrilov <artem(dot)gavrilov(at)percona(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Marko M <marko(at)pganalyze(dot)com>, Sami Imseih <samimseih(at)gmail(dot)com> |
Subject: | Re: [PATCH] Optionally record Plan IDs to track plan changes for a query |
Date: | 2025-01-24 07:44:01 |
Message-ID: | CAP53Pkyq8xsouqY=G7+gWovnOde=pRPorRFOe5i6u0YELowoHA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Jan 21, 2025 at 10:47 AM Artem Gavrilov <artem(dot)gavrilov(at)percona(dot)com>
wrote:
> We have another extension that does plan ID tracking: pg_stat_monitor. So
> I think it would be great to have this functionality in core.
>
Thanks! I had forgotten that pg_stat_monitor can optionally track plan
statistics. Its actually another data point for why the plan ID calculation
should be in core:
Like pg_store_plans, pg_stat_monitor is hashing the plan text to calculate
the plan ID [0], which can have measurable overhead (judging from our
benchmarks of pg_store_plans). It also utilizes EXPLAIN (COSTS OFF) for
getting the plan text [1], which tracks with my thinking as to what should
be considered significant for the plan ID jumbling.
I tested your patch set on top of *86749ea3b76* PG revision on MacOS. All
> tests successfully passed. However, pgident shows that some files are not
> properly formatted.
>
Thanks, appreciate the test and note re: pgident, taking care of that in
the next patch refresh.
Thanks,
Lukas
[0]:
https://github.com/percona/pg_stat_monitor/blob/main/pg_stat_monitor.c#L730
[1]:
https://github.com/percona/pg_stat_monitor/blob/main/pg_stat_monitor.c#L678
--
Lukas Fittl
From | Date | Subject | |
---|---|---|---|
Next Message | Srinath Reddy | 2025-01-24 08:04:19 | Re: why -Fdance archive format option works with ./pg_restore but not with ./pg_dump? |
Previous Message | vignesh C | 2025-01-24 07:38:18 | Re: Pgoutput not capturing the generated columns |