pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Kaimeh <kkaimeh@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Error when using array_agg with filter where clause in pg16 and pg17
Date: Tue, 08 Apr 2025 22:36:26 -0400
Message-ID: <112033.1744166186@sss.pgh.pa.us> (raw)
In-Reply-To: <CAApHDvqi79jXFBeaOSDok8psEkTpzgHzaKje6VCyKVtj=Ss1_A@mail.gmail.com>
References: <CAK-+Jz9J=Q06-M7cDJoPNeYbz5EZDqkjQbJnmRyQyzkbRGsYkA@mail.gmail.com>
	<4040920.1744126348@sss.pgh.pa.us>
	<CAApHDvqb8BxPvh3wwVc1YXNWGVVw9nJ49mFsdOwzHjBji0qDPw@mail.gmail.com>
	<90177.1744158354@sss.pgh.pa.us>
	<CAApHDvrf8q52wZN08zygw5H2RE5z74u9toXckZnK_rt5KXNVyQ@mail.gmail.com>
	<101611.1744159946@sss.pgh.pa.us>
	<CAApHDvqi79jXFBeaOSDok8psEkTpzgHzaKje6VCyKVtj=Ss1_A@mail.gmail.com>

David Rowley <dgrowleyml@gmail.com> writes:
> I'm not following why my in method if the planner chooses a poor plan
> is any different from the planner choosing a poor plan for anything
> else because the stats or costs aren't a good reflection of reality.

Well, we hope we'll usually pick the right thing.  But upthread
you were complaining that any change might be a regression, or
at least that's how I read it.

			regards, tom lane





view thread (11+ messages)  latest in thread

Message-ID: <112033.1744166186@sss.pgh.pa.us>
Permalink:  ../112033.1744166186@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/112033.1744166186@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dgrowleyml@gmail.com, kkaimeh@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: Error when using array_agg with filter where clause in pg16 and pg17
  In-Reply-To: <112033.1744166186@sss.pgh.pa.us>

* 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