"Curtis H. Wilbar Jr." <curtis(at)hawkmountain(dot)net> writes:
> However, is there a way in my C function to determine the name of the
> table and of the database that caused the trigger.
The current database name is not passed around as a parameter, but you
can get it from the global variable DatabaseName. As for the table
name, try RelationGetRelationName(triggerdata->tg_relation).
regards, tom lane