agora inbox for pgsql-bugs@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Thom Brown <thom@linux.com>
Cc: 2320415112@qq.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19567: Redundant outer DISTINCT causes a second full aggregation above UNION
Date: Wed, 22 Jul 2026 07:34:01 -0400
Message-ID: <1364084.1784720041@sss.pgh.pa.us> (raw)
In-Reply-To: <CAA-aLv76CJn2OsKtfuptGRJ5p-Yg7y1qTzQPGX5sjt4T4PZ0Vg@mail.gmail.com>
References: <19567-a99eb73efbfb32fe@postgresql.org>
<CAA-aLv76CJn2OsKtfuptGRJ5p-Yg7y1qTzQPGX5sjt4T4PZ0Vg@mail.gmail.com>
Thom Brown <thom@linux.com> writes:
> This doesn't look like a bug, but rather an enhancement request.
Yeah, not one of these are bugs. Some of them might be missed
optimization opportunities. But you'd need to show that the extra
planning cost of detecting such cases is worthwhile, ie there's
a reasonably large fraction of real-world queries that would
benefit materially.
regards, tom lane
view thread (3+ messages)
Message-ID: <1364084.1784720041@sss.pgh.pa.us>
Permalink: ../1364084.1784720041@sss.pgh.pa.us/
Also on: postgresql.org/message-id/1364084.1784720041@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, thom@linux.com, 2320415112@qq.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #19567: Redundant outer DISTINCT causes a second full aggregation above UNION
In-Reply-To: <1364084.1784720041@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox