Re: Accessing original TupleDesc from SRF - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Accessing original TupleDesc from SRF
Date
Msg-id 26715.1030821281@sss.pgh.pa.us
Whole thread Raw
In response to Re: Accessing original TupleDesc from SRF  (Joe Conway <mail@joeconway.com>)
List pgsql-hackers
Joe Conway <mail@joeconway.com> writes:
> But BuildDescForRelation leaves initializes the tupdesc like this:
>    desc = CreateTemplateTupleDesc(natts, UNDEFOID);

> The UNDEFOID later causes an assertion failure in heap_formtuple when 
> you try to use the tupdesc to build a tuple.

So far, I haven't seen any reason to think that that three-way has-OID
stuff accomplishes anything but causing trouble ... but I've applied
this patch for the moment.  I hope to get around to reviewing the
HeapTupleHeader hacks later in the weekend.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Gordon Runkle
Date:
Subject: Re: [7.3-devl] Timezones on RH 7.3 and Null
Next
From: Bruce Momjian
Date:
Subject: Re: [pgaccess-developers] pgaccess 0.98.8 beta 1 - the show starts