Tzahi Fadida <tzahi_ml(at)myrealbox(dot)com> writes:
> well, I tried the heap_deformtuple and I am getting now:
> select testgetrows();
> server closed the connection unexpectedly
You didn't palloc the values array. Any reasonable compiler would have
warned you about that BTW. If you don't have compiler warnings enabled,
learn to use them.
Also, I'd recommend using the tupledesc from the just-opened lRel;
fetching it via an independent path is just asking for trouble.
regards, tom lane