Re: 8.0.0rc1 core dump with PREPARE in a function - Mailing list pgsql-bugs

From Tom Lane
Subject Re: 8.0.0rc1 core dump with PREPARE in a function
Date
Msg-id 17969.1102790573@sss.pgh.pa.us
Whole thread Raw
In response to 8.0.0rc1 core dump with PREPARE in a function  (Michael Fuhr <mike@fuhr.org>)
List pgsql-bugs
Michael Fuhr <mike@fuhr.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

pgsql-bugs by date:

Previous
From: "Libsis"
Date:
Subject: create/drop table bug
Next
From: "Magnus Hagander"
Date:
Subject: Re: problem while installitn PSQL 8.0 (win)