HeapTuple->t_tableOid==0 after SPI_exec

Поиск
Список
Период
Сортировка
От achill@matrix.gatewaynet.com
Тема HeapTuple->t_tableOid==0 after SPI_exec
Дата
Msg-id Pine.LNX.4.44.0310031546360.5168-100000@matrix.gatewaynet.com
обсуждение исходный текст
Ответы Re: HeapTuple->t_tableOid==0 after SPI_exec  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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



В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: How to figure out when was a table created
Следующее
От: Tom Lane
Дата:
Сообщение: Re: HeapTuple->t_tableOid==0 after SPI_exec