Adam Ruth <adamruth(at)mac(dot)com> writes:
> I needed to do this just the other day, here's what I did:
> create or replace function explode(_a anyarray) returns setof
> anyelement as $$
You'd be well advised to call this unnest(), because that's what the
equivalent built-in function in 8.4 is called ;-)
regards, tom lane