pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: Martijn van Oosterhout <kleptog@gmail.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #17564: Planner bug in combination of generate_series(), unnest() and ORDER BY
Date: Thu, 04 Aug 2022 11:13:22 -0400
Message-ID: <3503395.1659626002@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMbWs49AAq1V18=n37qOmAdWOd0-Y=_Z6Wy1gWM2=FeqJWbrCQ@mail.gmail.com>
References: <17564-c7472c2f90ef2da3@postgresql.org>
	<2184335.1659392231@sss.pgh.pa.us>
	<CADWG95s03YZsRy3+q0bQFXW_v_f-9vMvcFOo6KUL08DvqbXhqg@mail.gmail.com>
	<CAMbWs49AgGUophtyThqHhSUyDTu3h6oATg-7GgowCtvHWCh9qQ@mail.gmail.com>
	<3002973.1659538573@sss.pgh.pa.us>
	<CAMbWs4_W70RK77_j+_QzYAey2oQoxa8pwb0rp8KCeeH4bt5Jzg@mail.gmail.com>
	<3297011.1659578134@sss.pgh.pa.us>
	<CAMbWs49AAq1V18=n37qOmAdWOd0-Y=_Z6Wy1gWM2=FeqJWbrCQ@mail.gmail.com>

Richard Guo <guofenglinux@gmail.com> writes:
> Yeah, I tested in bc76f5ac4. Attached is a regression test I composed.
> I tested it locally and it can catch this bug before 1aa8dad41 and give
> the expected answer after 1aa8dad41.

Nice!  I found we could simplify it even further: we don't seem to
need the generate_subscripts() to provoke the error in this query.
And it fails in v13-v14, too.  Pushed.

			regards, tom lane





view thread (18+ messages)  latest in thread

Message-ID: <3503395.1659626002@sss.pgh.pa.us>
Permalink:  ../3503395.1659626002@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3503395.1659626002@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, guofenglinux@gmail.com, kleptog@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17564: Planner bug in combination of generate_series(), unnest() and ORDER BY
  In-Reply-To: <3503395.1659626002@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