Ondrej Palkovsky <xpalo03@vse.cz> writes:
> I have the following function. When the function is executed and it gets
> to the 'IF NOT FOUND', the backend gets restarted.
Is this in 7.1.1? There's an embarrassing bug in 7.1.1 --- plpgsql
coredumps on a SELECT that returns no rows. It's fixed for 7.1.2.
regards, tom lane