subquery q2 does not have attribute 0 - Mailing list pgsql-hackers

From Kevin Grittner
Subject subquery q2 does not have attribute 0
Date
Msg-id 1384202819.95967.YahooMailNeo@web162901.mail.bf1.yahoo.com
Whole thread Raw
Responses Re: subquery q2 does not have attribute 0  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
In playing with a sample query from another thread I found this
query is broken on the master branch:

select q1.*
  from (select 'a'::text) q1(c)
  where not exists
   (select * from (select 'A'::text) q2(c) where q2 = q1);

I get:

ERROR:  subquery q2 does not have attribute 0

I checked and found it broken on 9.2 and 9.3, but working on 9.1.
git bisect, says it was broken by commit
1cb108efb0e60d87e4adec38e7636b6e8efbeb57.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Add %z support to elog/ereport?
Next
From: Tom Lane
Date:
Subject: Re: subquery q2 does not have attribute 0