Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group