Re: 8.0.0rc1 core dump with PREPARE in a function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: 8.0.0rc1 core dump with PREPARE in a function
Date: 2004-12-11 18:42:53
Message-ID: 17969.1102790573@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Michael Fuhr <mike(at)fuhr(dot)org> writes:
> I can consistenly produce a core dump by calling a function that
> executes PREPARE...INSERT or PREPARE...UPDATE, then calling it again.

I think this is a variant of the same problem recently detected with
DECLARE CURSOR, ie, PREPARE had better copy the source parsetree before
letting the planner touch it.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruno Wolff III 2004-12-11 19:54:35 Re: concat fails 'sometimes' on empty colums in select
Previous Message Magnus Hagander 2004-12-11 18:40:38 Re: problem while installitn PSQL 8.0 (win)