Louis-David Mitterrand <cunctator(at)apartia(dot)ch> writes:
> Strangely engough the function call works fine when called from psql but
> fails (but not always!) from a C trigger.
May we see the C trigger? I'm suspicious it's doing something wrong...
regards, tom lane