dbTalk Databases Forums  

Re: [BUGS] intermittent error: 'variable not found in subplan target list'

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss Re: [BUGS] intermittent error: 'variable not found in subplan target list' in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] intermittent error: 'variable not found in subplan target list' - 02-27-2004 , 03:52 PM






Damon Hart <dhcom (AT) sundial (DOT) com> writes:
Quote:
Thanks for your response, the full original post follows, including both
scripts.
Found it. The patch for 7.4.* is attached. It will appear in 7.4.2.

regards, tom lane

Index: src/backend/optimizer/plan/initsplan.c
================================================== =================
RCS file: /cvsroot/pgsql-server/src/backend/optimizer/plan/initsplan.c,v
retrieving revision 1.91.2.1
diff -c -r1.91.2.1 initsplan.c
*** src/backend/optimizer/plan/initsplan.c 5 Nov 2003 22:00:52 -0000 1.91.2.1
--- src/backend/optimizer/plan/initsplan.c 27 Feb 2004 21:38:40 -0000
***************
*** 768,778 ****
errmsg("equality operator for types %s and %s should be merge-joinable, but isn't",
format_type_be(ltype), format_type_be(rtype))));

clause = make_opclause(oprid(eq_operator), /* opno */
BOOLOID, /* opresulttype */
false, /* opretset */
! (Expr *) item1,
! (Expr *) item2);

ReleaseSysCache(eq_operator);

--- 768,783 ----
errmsg("equality operator for types %s and %s should be merge-joinable, but isn't",
format_type_be(ltype), format_type_be(rtype))));

+ /*
+ * Now we can build the new clause. Copy to ensure it shares no
+ * substructure with original (this is necessary in case there are
+ * subselects in there...)
+ */
clause = make_opclause(oprid(eq_operator), /* opno */
BOOLOID, /* opresulttype */
false, /* opretset */
! (Expr *) copyObject(item1),
! (Expr *) copyObject(item2));

ReleaseSysCache(eq_operator);


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.