"Will Szopko" <[EMAIL PROTECTED]> writes: > The postmaster in 8.1.0 crashes when creating or replacing a PL/PgSQL > function containing an invalid variable declaration.
Looks like a copy-and-paste mistake... Index: pl_comp.c =================================================================== RCS file: /cvsroot/pgsql/src/pl/plpgsql/src/pl_comp.c,v retrieving revision 1.94.2.1 diff -c -r1.94.2.1 pl_comp.c *** pl_comp.c 22 Nov 2005 18:23:30 -0000 1.94.2.1 --- pl_comp.c 9 Dec 2005 16:56:38 -0000 *************** *** 1457,1463 **** done: if (HeapTupleIsValid(classtup)) ReleaseSysCache(classtup); ! if (HeapTupleIsValid(classtup)) ReleaseSysCache(attrtup); if (HeapTupleIsValid(typetup)) ReleaseSysCache(typetup); --- 1457,1463 ---- done: if (HeapTupleIsValid(classtup)) ReleaseSysCache(classtup); ! if (HeapTupleIsValid(attrtup)) ReleaseSysCache(attrtup); if (HeapTupleIsValid(typetup)) ReleaseSysCache(typetup); regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster