CREATE OR REPLACE FUNCTION explode(_a anyarray) returns setof anyelement AS $_$ BEGIN RAISE NOTICE 'poof... just kidding... kabooom'; RETURN unnest(_a); END; $_$ LANGUAGE 'plpgsql' ;] seriously, the 8.4 version is written in C, so I will be really surprised if it under performs plpgsql one .) -- GJ -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general