Re: psql 7.3.1: signal 11 + replace_vars_with_subplan_refs: variable not in subplan target list

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stefanos Harhalakis <v13(at)it(dot)teithe(dot)gr>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: psql 7.3.1: signal 11 + replace_vars_with_subplan_refs: variable not in subplan target list
Date: 2003-02-07 00:03:51
Message-ID: 19482.1044576231@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Stefanos Harhalakis <v13(at)it(dot)teithe(dot)gr> writes:
> I'm stuck here with a query that kills postgresql backend.

Hoo, that was a fun one. Try this patch ...

regards, tom lane

*** src/backend/optimizer/plan/initsplan.c.orig Wed Sep 4 16:31:21 2002
--- src/backend/optimizer/plan/initsplan.c Thu Feb 6 18:39:07 2003
***************
*** 443,449 ****
else
{
/* this relid is for a true baserel */
! newrelids = lappendi(newrelids, lfirsti(relid));
}
}
relids = newrelids;
--- 443,450 ----
else
{
/* this relid is for a true baserel */
! if (!intMember(lfirsti(relid), newrelids))
! newrelids = lappendi(newrelids, lfirsti(relid));
}
}
relids = newrelids;

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-02-07 01:24:20 Re: Bug with Temp table with serial column
Previous Message Kris Jurka 2003-02-06 21:12:36 Re: Troubles with JDBC method DataBaseMetaData.getTables()