Re: ERROR: cache lookup failed for type 0

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tzahi Fadida <tzahi_ml(at)myrealbox(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: cache lookup failed for type 0
Date: 2005-01-07 22:23:44
Message-ID: 421.1105136624@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tzahi Fadida 2005-01-07 22:56:52 returning a setof tuples like a subquery was(RE: ERROR: cache lookup failed for type 0 )
Previous Message Jeff Davis 2005-01-07 22:20:16 bgwriter