pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: cen <cen.is.imba@gmail.com>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Postgres undeterministically uses a bad plan, how to convince it otherwise?
Date: Fri, 17 Feb 2023 11:30:03 +0100
Message-ID: <da2deef1-74fd-6745-e85d-37657dc16eb0@gmail.com> (raw)
In-Reply-To: <CAKFQuwawyAS1NmEMtAhiE7ERMVARmJPwi=P7COaFryOFDLC4Jw@mail.gmail.com>
References: <9c98978d-fc72-8655-bb29-5aaa941bee36@gmail.com>
	<CAKFQuwawyAS1NmEMtAhiE7ERMVARmJPwi=P7COaFryOFDLC4Jw@mail.gmail.com>

On 16/02/2023 17:07, David G. Johnston wrote:
>
> No, the planner may not cause execution.  While I could imagine 
> extending EXPLAIN to somehow retrieve and maybe even try alternative 
> plans that have been fully constructed today I'm not holding my breath.
>
> There is little reason for the project to give any real weight to 
> "assuming the query to be immutable".  We do want to fix the planner 
> to behave better if it is mis-behaving, otherwise you do have access 
> to cost parameters, and potentially other planner toggles if you've 
> truly run into an intractable problem.
>
> David J.
>
Fair on both points. I didn't know planner toggles existed, I'll play 
with that.

view thread (10+ messages)  latest in thread

Message-ID: <da2deef1-74fd-6745-e85d-37657dc16eb0@gmail.com>
Permalink:  ../da2deef1-74fd-6745-e85d-37657dc16eb0@gmail.com/
Also on:    postgresql.org/message-id/da2deef1-74fd-6745-e85d-37657dc16eb0@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-general@postgresql.org
  Cc: cen.is.imba@gmail.com, david.g.johnston@gmail.com
  Subject: Re: Postgres undeterministically uses a bad plan, how to convince it otherwise?
  In-Reply-To: <da2deef1-74fd-6745-e85d-37657dc16eb0@gmail.com>
  References: <9c98978d-fc72-8655-bb29-5aaa941bee36@gmail.com> <CAKFQuwawyAS1NmEMtAhiE7ERMVARmJPwi=P7COaFryOFDLC4Jw@mail.gmail.com> <da2deef1-74fd-6745-e85d-37657dc16eb0@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