Re: [HACKERS] Make subquery alias optional in FROM clause - Mailing list pgsql-hackers

From Greg Stark
Subject Re: [HACKERS] Make subquery alias optional in FROM clause
Date
Msg-id CAM-w4HPHQQD6bOXL9a5DVSBB6Q5LkbTvDaVgV3_hOiQccJEtVg@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Make subquery alias optional in FROM clause  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On 23 February 2017 at 13:27, Greg Stark <stark@mit.edu> wrote:
> => SELECT "?column"? FROM (select 1+1 as "?column?", 1+1) AS x;

Oops, I missed the typo there:

=> SELECT "?column?" FROM (select 1+1 AS "?column?", 1+1) AS x;
ERROR:  42702: column reference "?column?" is ambiguous
LINE 2: SELECT "?column?" FROM (select 1+1 AS "?column?", 1+1) AS x;              ^
LOCATION:  scanRTEForColumn, parse_relation.c:669


-- 
greg



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: [HACKERS] Make subquery alias optional in FROM clause
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] case_preservation_and_insensitivity = on