Re: SPI problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SPI problem
Дата
Msg-id 2956.1088564622@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SPI problem  ("Alastair Bell" Turner "" <bell@tangent.co.za>)
Список pgsql-interfaces
"Alastair Bell" Turner "" <bell@tangent.co.za> writes:
> I'm trying to build a c trigger with the Server Programming Interface and
> not having a lot of joy.

I think what you need to return from a trigger is PointerGetDatum() of a
HeapTuple.  TupleGetDatum is a different animal that is *not* used for
trigger results, for mostly-historical reasons.

There are several working examples in the contrib/ modules.
        regards, tom lane


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

Предыдущее
От: Greg Markham
Дата:
Сообщение: Embedded SQL timestamp Question (ECPG)
Следующее
От: Carlos Ojea Castro
Дата:
Сообщение: Re: : query using kylix (delphi)