Thanks for the help on the libperl question. I bet recompiling the
sources will fix my problem.
There is an error in the example in the file: triggers20290.htm. All the
elog statements list "WARN" as the first parameter. However WARN is not
defined in elog.h (or, it seems, anywhere else). In my code, I just used
NOTICE instead and it worked okay.
On another note, I noticed that when you load a dynamically loaded c
library using the create funtion statement in psql, the library is never
reloaded unless you quit psql and restart it, even if you "drop function",
change the library, and recreate the function. This is good for making
the code work fast (you don't want postgress to keep checking to see if
the library has changed), but this should probably be noted somewhere in
the programmers manual. If you don't know this, debugging a c function
can be quite frustrating.
----------------------------------------------------------------
Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer
----------------------------------------------------------------