From: | Andrei Lepikhov <lepihov(at)gmail(dot)com> |
---|---|
To: | David Rowley <dgrowleyml(at)gmail(dot)com>, Jean-Christophe BOGGIO <postgresql(at)thefreecat(dot)org> |
Cc: | "pgsql-performance(at)lists(dot)postgresql(dot)org" <pgsql-performance(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Why isn't PG using an index-only scan? |
Date: | 2025-09-18 07:55:57 |
Message-ID: | 32dc1fe9-175a-4894-b4c4-c6cdc6a76a16@gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On 18/9/2025 09:20, David Rowley wrote:
> On Thu, 18 Sept 2025 at 18:36, Jean-Christophe BOGGIO
> If it still takes a long time, you might try SET enable_mergejoin = 0;
> and run the EXPLAIN ANALYZE SELECT .. part. That'll at least give us
> more accurate row counts of what we're actually working with.This appears to be a good example of a missing feature: the in-execution
callback or hook.
Imagine if we had a hook within the ExecProcNode. In that scenario, we
could create a trivial extension that would stop the query after, let's
say, 10 minutes of execution and display the current state. This would
give us more reliable data on estimation and the state of the plan tree.
What are your thoughts?
--
regards, Andrei Lepikhov
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2025-09-18 11:32:01 | Re: Why isn't PG using an index-only scan? |
Previous Message | Jean-Christophe BOGGIO | 2025-09-18 07:45:13 | Re: Why isn't PG using an index-only scan? |