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 20:31:07
Message-ID: 29191.1105129867@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:
> It still doesn't work. btw, I am using 8rc2.

Um. The "clean" way to do this is to use BlessTupleDesc and then
heap_formtuple. That requires you to break down the original tuple
into fields (see heap_deformtuple). Alternatively you could poke
the datatype ID fields directly into the copied tuple.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-01-07 20:37:51 Re: MS-SQL to PostgreSQL
Previous Message Craig Bryden 2005-01-07 20:00:47 MS-SQL to PostgreSQL