Re: Accessing original TupleDesc from SRF

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: John Gray <jgray(at)azuli(dot)co(dot)uk>, Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Accessing original TupleDesc from SRF
Date: 2002-08-31 19:14:41
Message-ID: 26715.1030821281@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Joe Conway <mail(at)joeconway(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-08-31 19:35:02 Re: [pgaccess-developers] pgaccess 0.98.8 beta 1 - the show starts
Previous Message Gordon Runkle 2002-08-31 18:57:28 Re: [7.3-devl] Timezones on RH 7.3 and Null