HeapTuple->t_tableOid==0 after SPI_exec

From: achill(at)matrix(dot)gatewaynet(dot)com
To: pgsql-hackers(at)postgresql(dot)org, <pgsql-sql(at)postgresql(dot)org>
Subject: HeapTuple->t_tableOid==0 after SPI_exec
Date: 2003-10-03 12:56:07
Message-ID: Pine.LNX.4.44.0310031546360.5168-100000@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql


Hi,

i notice that when HeapTuple data are populated by a trigger
then the table oid can be retrieved from HeapTuple->t_tableOid.

When HeapTuple is populated by
SPI_exec("select * from foobar when id=667");
tuple = SPI_tuptable->tvals[0] (id is PK and row with 667 exists)
then tuple->t_tableOid is always 0.

Is it a known issue??
Am i missing something?

-Achilleus

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-10-03 13:39:30 Re: Weird locking situation
Previous Message Jeff 2003-10-03 12:36:42 Re: count(*) slow on large tables

Browse pgsql-sql by date

  From Date Subject
Next Message John B. Scalia 2003-10-03 13:18:44 Bug in psql - Postgresql 7.3.1?
Previous Message btober 2003-10-03 12:12:29 Re: How to figure out when was a table created