"Asif Ali" <asifalirehman(at)gmail(dot)com> writes:
> your patch fixes the crash but instead of displaying the sqlerrm value, it
> is displaying <NULL> in
> pl block, declared inside exception block.
Hm, not what I see here. Could you submit a test case that does that?
regards, tom lane