pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrei Lepikhov <lepihov@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: making EXPLAIN extensible
Date: Tue, 4 Mar 2025 16:26:49 +0100
Message-ID: <84cd599b-9648-48f0-858f-3c4e7a025d2e@gmail.com> (raw)
In-Reply-To: <CA+Tgmoa5sRYPoOyysuAaCxtg8OegJa0PhStDA-3rg0YbE1+z+g@mail.gmail.com>
References: <CA+TgmoYSzg58hPuBmei46o8D3SKX+SZoO4K_aGQGwiRzvRApLg@mail.gmail.com>
	<754369a6-9017-4d5d-8fea-7768e5b94b0f@gmail.com>
	<CA+TgmobpiSJiOTikN6BZw-ffsWwKGL=5qZQzRzLg=eK4=p03RA@mail.gmail.com>
	<e8c71d13-76f0-4631-8e0b-7a2f608248b6@gmail.com>
	<CA+Tgmoa5sRYPoOyysuAaCxtg8OegJa0PhStDA-3rg0YbE1+z+g@mail.gmail.com>

On 4/3/2025 16:14, Robert Haas wrote:
> On Tue, Mar 4, 2025 at 10:12 AM Andrei Lepikhov <lepihov@gmail.com> wrote:
>> Also, I think this feature is quite close to the discussion on the
>> possibility of adding an extensible list field into Query, PlanState,
>> Plan, etc. nodes to let extensions gather and transfer some additional
>> data starting with the first 'analyze' hook up to the end of execution.
>> For example, in solving user issues, I frequently need to know
>> predictions on the number of groups in Memoize, IncrementalSort and some
>> other nodes. Such extensibility could allow an extension to gather such
>> internal data during the planning stage and show it in the explain
>> without any changes in the core!
> 
> If you're saying there's a -hackers discussion on this, could you
> provide a link? I haven't seen it.
> 
I wouldn't say there is a thread in the mailing list. I mentioned this 
direction of extensibility multiple times (for example, [1,2]) with no 
reaction. However, letting extensions show data in explan gives this 
idea additional impulse.

[1] 
https://www.postgresql.org/message-id/30113d59-8678-49ca-a8fb-bbceacf7efb0%40gmail.com
[2] 
https://www.postgresql.org/message-id/CA%2BTgmoYXgBVCnFhrW3X1NxpdjWtJCYRKP38PQ-AdR-RJziTBUQ%40mail.g...

-- 
regards, Andrei Lepikhov





view thread (88+ messages)  latest in thread

Message-ID: <84cd599b-9648-48f0-858f-3c4e7a025d2e@gmail.com>
Permalink:  ../84cd599b-9648-48f0-858f-3c4e7a025d2e@gmail.com/
Also on:    postgresql.org/message-id/84cd599b-9648-48f0-858f-3c4e7a025d2e@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: lepihov@gmail.com, robertmhaas@gmail.com
  Subject: Re: making EXPLAIN extensible
  In-Reply-To: <84cd599b-9648-48f0-858f-3c4e7a025d2e@gmail.com>
  References: <CA+TgmoYSzg58hPuBmei46o8D3SKX+SZoO4K_aGQGwiRzvRApLg@mail.gmail.com> <754369a6-9017-4d5d-8fea-7768e5b94b0f@gmail.com> <CA+TgmobpiSJiOTikN6BZw-ffsWwKGL=5qZQzRzLg=eK4=p03RA@mail.gmail.com> <e8c71d13-76f0-4631-8e0b-7a2f608248b6@gmail.com> <CA+Tgmoa5sRYPoOyysuAaCxtg8OegJa0PhStDA-3rg0YbE1+z+g@mail.gmail.com> <84cd599b-9648-48f0-858f-3c4e7a025d2e@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox