pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: achill@matrix.gatewaynet.com
To: pgsql-hackers@postgresql.org, <pgsql-sql@postgresql.org>
Subject: HeapTuple->t_tableOid==0 after SPI_exec
Date: Fri, 3 Oct 2003 15:56:07 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0310031546360.5168-100000@matrix.gatewaynet.com> (raw)


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




view thread (4+ messages)  latest in thread

Message-ID: <Pine.LNX.4.44.0310031546360.5168-100000@matrix.gatewaynet.com>
Permalink:  ../Pine.LNX.4.44.0310031546360.5168-100000@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.44.0310031546360.5168-100000@matrix.gatewaynet.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: achill@matrix.gatewaynet.com
  Subject: Re: HeapTuple->t_tableOid==0 after SPI_exec
  In-Reply-To: <Pine.LNX.4.44.0310031546360.5168-100000@matrix.gatewaynet.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox