"Andrew Snow" <andrew@modulus.org> writes:
> I am pretty sure there are some bugs in v7.1.x PL/PGSQL, they are difficult
> to produce and nail down though.
Especially if you don't even specify exactly which version you're using
;-)
Are you aware of the empty-SELECT-result-dumps-core bug in 7.1.1? That
might explain some of your difficulties ...
regards, tom lane