Michal Hlavac <hlavki(at)medium13(dot)sk> writes:
> I have stored procedure, which works good, but only if input is "correct".
> Correct input is, when $1 is id, which exists in table...
> If I put non exists id, database fall down and restart with this error:
> server closed the connection unexpectedly
I can't reproduce a crash here, but perhaps that's because you have not
supplied any sample data...
regards, tom lane