From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rajkumar Raghuwanshi <rajkumar.raghuwanshi@enterprisedb.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Cc: Andres Freund <andres@anarazel.de>
Subject: Re: ERROR: ORDER/GROUP BY expression not found in targetlist
Date: Wed, 20 Jun 2018 11:59:57 -0400
Message-ID: <20180.1529510397@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKcux6=1_Ye9kx8YLBPmJs_xE72PPc6vNi5q2AOHowMaCWjJ2w@mail.gmail.com>
References: <CAKcux6=1_Ye9kx8YLBPmJs_xE72PPc6vNi5q2AOHowMaCWjJ2w@mail.gmail.com>
Rajkumar Raghuwanshi <rajkumar.raghuwanshi@enterprisedb.com> writes:
> Below test case is failing with ERROR: ORDER/GROUP BY expression not found
> in targetlist. this issue is reproducible from PGv10.
Thanks for the report. I traced through this, and the problem seems to
be that split_pathtarget_at_srfs() is neglecting to attach sortgroupref
labeling to the extra PathTargets it constructs. I don't remember
whether that code is my fault or Andres', but I'll take a look at
fixing it.
regards, tom lane
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, rajkumar.raghuwanshi@enterprisedb.com, andres@anarazel.de
Subject: Re: ERROR: ORDER/GROUP BY expression not found in targetlist
In-Reply-To: <20180.1529510397@sss.pgh.pa.us>
References: <CAKcux6=1_Ye9kx8YLBPmJs_xE72PPc6vNi5q2AOHowMaCWjJ2w@mail.gmail.com> <20180.1529510397@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