Re: Custom explain options

From: Konstantin Knizhnik <knizhnik(at)garret(dot)ru>
To: Andrei Lepikhov <a(dot)lepikhov(at)postgrespro(dot)ru>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Custom explain options
Date: 2024-01-10 13:32:50
Message-ID: 56379b8e-bfcf-4207-928e-93290b65c63b@garret.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 10/01/2024 8:29 am, Andrei Lepikhov wrote:
> On 30/11/2023 22:40, Konstantin Knizhnik wrote:
>> In all this cases we are using array of `Instrumentation` and if it
>> contains varying part, then it is not clear where to place it.
>> Yes, there is also code which serialize and sends instrumentations
>> between worker processes  and I have updated this code in my PR to
>> send actual amount of custom instrumentation data. But it can not
>> help with the cases above.
> What do you think about this really useful feature? Do you wish to
> develop it further?
>
In Neon (cloud Postgres) we have changed Postgres core to include in
explain information about prefetch and local file cache.
EXPLAIN seems to be most convenient way for users to get this
information which can be very useful for investigation of query
execution speed.
So my intention was to make it possible to add extra information to
explain without patching Postgres core.
Existed explain hook is not enough for it.

I am not sure that the suggested approach is flexible enough. First of
all I tried to make it is simple as possible, minimizing changes in
Postgres core.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2024-01-10 13:41:05 Re: System username in pg_stat_activity
Previous Message Dagfinn Ilmari Mannsåker 2024-01-10 13:27:50 Re: System username in pg_stat_activity