Re: Look at all paths? - Mailing list pgsql-hackers

From Andrey V. Lepikhov
Subject Re: Look at all paths?
Date
Msg-id 4c162daf-4dab-5bd6-6cff-9a8512446219@postgrespro.ru
Whole thread Raw
In response to Look at all paths?  (Chris Cleveland <ccleve+github@dieselpoint.com>)
List pgsql-hackers
On 12/29/21 5:07 AM, Chris Cleveland wrote:
> I'm developing a new index access method. Sometimes the planner uses it 
> and sometimes it doesn't. I'm trying to debug the process to understand 
> why the index does or doesn't get picked up.
> 
> Is there a way to dump all of the query plans that the planner 
> considered, along with information on why they were rejected? EXPLAIN 
> only gives info on the plan that was actually selected.

You can enable OPTIMIZER_DEBUG option. Also the gdbpg code [1] makes our 
work much easier, sometimes.

[1] https://github.com/tvondra/gdbpg

-- 
regards,
Andrey Lepikhov
Postgres Professional



pgsql-hackers by date:

Previous
From: "tanghy.fnst@fujitsu.com"
Date:
Subject: RE: row filtering for logical replication
Next
From: Thomas Munro
Date:
Subject: Re: Documenting when to retry on serialization failure