Re: ORDER/GROUP BY expression not found in targetlist

From: Peter Geoghegan <pg(at)heroku(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Subject: Re: ORDER/GROUP BY expression not found in targetlist
Date: 2016-05-26 02:57:11
Message-ID: CAM3SWZRJu4Csxu4yU-q0HEQcjoNaM6xk1=QsaER7xny-pNtSvg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 25, 2016 at 7:12 PM, Andres Freund <andres(at)anarazel(dot)de> wrote:
>
> =# CREATE TABLE twocol(col01 int, col02 int);
> =# SELECT DISTINCT col01, col02, col01 FROM twocol ;
> ERROR: XX000: ORDER/GROUP BY expression not found in targetlist
> LOCATION: get_sortgroupref_tle, tlist.c:341
>
> which appears to be a 9.6 regression, presumable fallout from the path
> restructuring.

It's surprising that SQL Smith didn't catch something with such simple
steps to reproduce.

--
Peter Geoghegan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Noah Misch 2016-05-26 05:57:58 Re: statistics for shared catalogs not updated when autovacuum is off
Previous Message Andres Freund 2016-05-26 02:12:35 ORDER/GROUP BY expression not found in targetlist