pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: depesz@depesz.com
Cc: pgsql-bugs mailing list <pgsql-bugs@postgresql.org>
Cc: David Rowley <dgrowleyml@gmail.com>
Subject: Re: UNION removes almost all rows (not duplicates) - in fresh build of pg17!
Date: Mon, 20 May 2024 13:11:24 -0400
Message-ID: <3538123.1716225084@sss.pgh.pa.us> (raw)
In-Reply-To: <Zktzf926vslR35Fv@depesz.com>
References: <Zktzf926vslR35Fv@depesz.com>

hubert depesz lubaczewski <depesz@depesz.com> writes:
> $ select count(*) from ( select * from pg_class where relkind = 'r' union select * from pg_class where relkind = 'i' );
>  count
> ───────
>      1
> (1 row)

Ugh, that is awful.  Bisecting shows it broke at

commit 66c0185a3d14bbbf51d0fc9d267093ffec735231
Author: David Rowley <drowley@postgresql.org>
Date:   Mon Mar 25 14:31:14 2024 +1300

    Allow planner to use Merge Append to efficiently implement UNION

I've not looked at the patch, but somehow it's totally forgetting
what it's supposed to be unique-ifying on.

			regards, tom lane





view thread (4+ messages)  latest in thread

Message-ID: <3538123.1716225084@sss.pgh.pa.us>
Permalink:  ../3538123.1716225084@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3538123.1716225084@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, depesz@depesz.com, dgrowleyml@gmail.com
  Subject: Re: UNION removes almost all rows (not duplicates) - in fresh build of pg17!
  In-Reply-To: <3538123.1716225084@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