Thanks for the quick responses. They are very helpful.
elog(ERROR) is the correct equivalent. Looks like someone fixed that
already; I can't find elog WARN anywhere in the current docs, except for
/home/postgres/pgsql/HISTORY: Change elog(WARN) to elog(ERROR)(Bruce)
I was going by the web page
(http://www.postgresql.org/users-lounge/docs/7.0/programmer/xtypes.htm),
which still by the way mentions WARN. Perhaps they are out of date.
Cheers,
Brook