"Hubert FONGARNAND" <h.fongarnand@fiducial.fr> writes:
> Note that i don't close c1 after returning...
> (c1 should be close automatically because it is declared inside my
> function);
What makes you think that?
If we forcibly closed cursors at function exit, it'd be impossible to
return a cursor reference, which is a very handy feature.
regards, tom lane