From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Test GROUP BY matching of join columns that are type-coerced by
Date: Thu, 02 Jan 2020 00:31:52 +0000
Message-ID: <E1imoP2-00068i-8z@gemulon.postgresql.org> (raw)
Test GROUP BY matching of join columns that are type-coerced by USING.
If we have, say, an int column that is left-joined to a bigint column
with USING, the merged column is the int column promoted to bigint.
GROUP BY's tests for whether grouping on the merged column allows a
reference to the underlying column, or vice versa, should know about
that relationship --- and they do. But I nearly broke this case with
an ill-advised optimization, so the lack of any test coverage for it
seems like a bad idea.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/823e739d4a7257cf0ca58fc6eff3c4cec308fccf
Modified Files
--------------
src/test/regress/expected/aggregates.out | 26 ++++++++++++++++++++++++++
src/test/regress/sql/aggregates.sql | 15 +++++++++++++++
2 files changed, 41 insertions(+)
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Test GROUP BY matching of join columns that are type-coerced by
In-Reply-To: <E1imoP2-00068i-8z@gemulon.postgresql.org>
References: <E1imoP2-00068i-8z@gemulon.postgresql.org>
* 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