Is there any error handling in there? I remember seeing performance issues if you put in any code to catch exceptions.
-- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance