Обсуждение: Trigger question

Поиск
Список
Период
Сортировка

Trigger question

От
Michael Meskes
Дата:
I just got this question in my mailbox. Anyone with more knowledge than I
can probably answer it. :-)

> I need "generic" trigger functions, that is trigger functions that have to know
> about the table they have been triggerd from.
> 
> Example: 
> a trigger function that generates a crc sum on all fields of any table.
> 
> In pltcl I can get the field names of the triggering table, but I am not able
> to call my "C" function from within pltcl (I can call my "C" fuinction
> perfectly well from the psql command line or from withing a plpgsql function.
> 
> Any helpful ideas? Appreciate any hint.

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!