I am writing a plpgsql function and I have come across the situation where I want to raise an exception, but there are cursors open.
Do these need to be closed before raising the exception or is that all handled for me?
Thanks,Tim