Adam Ruth <adamruth@xxxxxxx> 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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general