Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fYxjB-0007Ft-Qt for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jun 2018 18:02:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fYxj8-0007Rm-9X for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Jun 2018 18:02:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fYxj8-0007Rf-2y for pgsql-hackers@lists.postgresql.org; Fri, 29 Jun 2018 18:02:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fYxj0-0003l9-QM for pgsql-hackers@postgresql.org; Fri, 29 Jun 2018 18:02:33 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w5TI2KAe021852; Fri, 29 Jun 2018 14:02:20 -0400 From: Tom Lane To: "Regina Obe" cc: "'David Rowley'" , "'PostgreSQL-development'" Subject: Re: Regression on PostgreSQL 10 ORDER/GROUP BY expression not found in targetlist In-reply-to: <000701d40fce$d1098a50$731c9ef0$@pcorp.us> References: <001501d40f88$75186950$5f493bf0$@pcorp.us> <000701d40fce$d1098a50$731c9ef0$@pcorp.us> Comments: In-reply-to "Regina Obe" message dated "Fri, 29 Jun 2018 13:30:03 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26932.1530295340.1@sss.pgh.pa.us> Date: Fri, 29 Jun 2018 14:02:20 -0400 Message-ID: <26933.1530295340@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Regina Obe" writes: > 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; That's odd. It works fine in HEAD but not the v10 branch. I suspect that the fix David mentioned failed to cover some case related to the issue we saw last week ... but why the cross-version difference? Don't have time to investigate further right now. regards, tom lane