pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Seltenreich <seltenreich@gmx.de>
To: Peter Geoghegan <pg@heroku.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: ORDER/GROUP BY expression not found in targetlist
Date: Thu, 26 May 2016 16:07:59 +0200
Message-ID: <87a8jcoqtc.fsf@elite.ansel.ydns.eu> (raw)
In-Reply-To: <CAM3SWZRJu4Csxu4yU-q0HEQcjoNaM6xk1=QsaER7xny-pNtSvg@mail.gmail.com>
References: <20160526021235.w4nq7k3gnheg7vit@alap3.anarazel.de>
	<CAM3SWZRJu4Csxu4yU-q0HEQcjoNaM6xk1=QsaER7xny-pNtSvg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Peter Geoghegan writes:

> On Wed, May 25, 2016 at 7:12 PM, Andres Freund <andres@anarazel.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.

I removed distinct relatively early because it causes a large part of
queries to fail due to it not finding an equality operator it likes.  It
seems to be more picky about the equality operator than, say, joins.
I'm sure it has a good reason to do so?

regression=> select distinct f1 from path_tbl;
ERROR:  could not identify an equality operator for type path
LINE 1: select distinct f1 from path_tbl;

regression=> \do =
-[ RECORD 38 ]-+----------------------------
Schema         | pg_catalog
Name           | =
Left arg type  | path
Right arg type | path
Result type    | boolean
Description    | equal



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (8+ messages)  latest in thread

Message-ID: <87a8jcoqtc.fsf@elite.ansel.ydns.eu>
Permalink:  ../87a8jcoqtc.fsf@elite.ansel.ydns.eu/
Also on:    postgresql.org/message-id/87a8jcoqtc.fsf@elite.ansel.ydns.eu

 · 

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 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: seltenreich@gmx.de, pg@heroku.com, andres@anarazel.de, tgl@sss.pgh.pa.us
  Subject: Re: ORDER/GROUP BY expression not found in targetlist
  In-Reply-To: <87a8jcoqtc.fsf@elite.ansel.ydns.eu>
  References: <20160526021235.w4nq7k3gnheg7vit@alap3.anarazel.de> <CAM3SWZRJu4Csxu4yU-q0HEQcjoNaM6xk1=QsaER7xny-pNtSvg@mail.gmail.com> <87a8jcoqtc.fsf@elite.ansel.ydns.eu>

* 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