Re: ERROR: variable not found in subplan target lists - Mailing list pgsql-general

From Miroslav Šulc
Subject Re: ERROR: variable not found in subplan target lists
Date
Msg-id 4704FF48.9020701@startnet.cz
Whole thread Raw
In response to Re: ERROR: variable not found in subplan target lists  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: ERROR: variable not found in subplan target lists  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane napsal(a):
Alvaro Herrera <alvherre@commandprompt.com> writes: 
Miroslav Ĺ ulc wrote:   
I just verified that the problem is in pg 8.2.5 too.     
 
Can you show us the table definitions?   
We need a *complete* test case, ie, a SQL script to provoke the error
starting from an empty database. 
Here is the complete dump and the query. In my case the bug is reproducible using it.

# SELECT Invoice.* FROM Invoice WHERE false AND InvoiceGroupId IN (SELECT
InvoiceGroup.Id FROM InvoiceGroup INNER JOIN PartnerBranch ON
InvoiceGroup.PartnerBranchId = PartnerBranch.Id  WHERE
PartnerBranch.PartnerIdentificationId IN (132));
ERROR:  variable not found in subplan target lists
		regards, tom lane
Miroslav

Attachment

pgsql-general by date:

Previous
From: André Volpato
Date:
Subject: Re: multiple row insertion
Next
From: Brian Wipf
Date:
Subject: Re: PITR Recovery and out-of-sync indexes