I found the solution: SPI_gettype() does the job fine. I was led to that by rummaging through the slony source code to see how they handle the triggers in C. -- Paul Nicholson --
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных