pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Regina Obe <lr@pcorp.us>
To: 'David Rowley' <david.rowley@2ndquadrant.com>
Cc: 'PostgreSQL-development' <pgsql-hackers@postgresql.org>
Subject: RE: Regression on PostgreSQL 10 ORDER/GROUP BY expression not found in targetlist
Date: Fri, 29 Jun 2018 13:30:03 -0400
Message-ID: <000701d40fce$d1098a50$731c9ef0$@pcorp.us> (raw)
In-Reply-To: <CAKJS1f9r9-u16wEkQT2sKh5wRf3DJVVPSwoNAoJnnyqhH39dDg@mail.gmail.com>
References: <001501d40f88$75186950$5f493bf0$@pcorp.us>
	<CAKJS1f9r9-u16wEkQT2sKh5wRf3DJVVPSwoNAoJnnyqhH39dDg@mail.gmail.com>

> On 29 June 2018 at 21:06, Regina Obe <lr@pcorp.us> wrote:
> > I think the exact query that is triggering it is this one though I
> > don't have PostgreSQL 10 head installed locally to confirm.
> >
> > SELECT 't3280', 'L1b' || topology.TopoGeo_AddLinestring('bug3280',
> > geom)  FROM bug3280.edge where edge_id = 1  ORDER BY 1;
> 
> Can you try in REL_10_STABLE? There was a fix committed [1] for something
> very similar just a week ago.
> 
> [1]
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=a4c95b0b80
> c70677c09c0d5c82a6fba875160288
> 
> --
>  David Rowley                   http://www.2ndQuadrant.com/
>  PostgreSQL Development, 24x7 Support, Training & Services

Thanks for this input.  I guess I was mistaken about the commit that caused this
and it's most likely this one since this one fails as well.

Here is a trivial example to exercise that doesn't involve PostGIS.

CREATE TABLE edge AS SELECT 1 AS edge_id;
SELECT 't3280', 'L1b' || generate_series(1,10) 
FROM edge
ORDER BY 1;


Now that said, I think I should change our test since it's using questionable assumptions anyway.
My only concern with this issue is that it's behavior that was allowed before in 10 a stable branch
and it's changing in a micro release.

I doubt few others would be bitten by though, but probably still worthwhile to put a note about it in the upcoming release notes
if this new behavior is kept.

Thanks,
Regina Obe






view thread (7+ messages)  latest in thread

Message-ID: <000701d40fce$d1098a50$731c9ef0$@pcorp.us>
Permalink:  ../000701d40fce$d1098a50$731c9ef0$@pcorp.us/
Also on:    postgresql.org/message-id/000701d40fce$d1098a50$731c9ef0$@pcorp.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-hackers@postgresql.org
  Cc: lr@pcorp.us, david.rowley@2ndquadrant.com
  Subject: RE: Regression on PostgreSQL 10 ORDER/GROUP BY expression not found in targetlist
  In-Reply-To: <000701d40fce$d1098a50$731c9ef0$@pcorp.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