Re: HeapTuple->t_tableOid==0 after SPI_exec

From: achill(at)matrix(dot)gatewaynet(dot)com
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: HeapTuple->t_tableOid==0 after SPI_exec
Date: 2003-10-03 15:04:47
Message-ID: Pine.LNX.4.44.0310031802570.9228-100000@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

On Fri, 3 Oct 2003, Tom Lane wrote:

>
> I think in 7.4 there may be an optimization that skips the tuple
> projection step in this particular case, but if you can in fact see
> t_tableOid in 7.4, it'd be an implementation artifact rather than
> something we will promise to support in future. The correct way if you
> want to see tableoid is to select it:
>
> select tableoid,* from foobar where ...
>
> and then extract it from the result using the usual field-access
> routines.

Thanx.

P.S.

are there gonna be changes in SPI or internal structs in 7.4?

>
> regards, tom lane
>

--
-Achilleus

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Sullivan 2003-10-03 15:17:15 Re: Thoughts on maintaining 7.3
Previous Message Tom Lane 2003-10-03 15:03:19 Re: HeapTuple->t_tableOid==0 after SPI_exec

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-10-03 15:26:23 Re: Creating Index
Previous Message Tom Lane 2003-10-03 15:03:19 Re: HeapTuple->t_tableOid==0 after SPI_exec