On Tue, Jun 23, 2015 at 3:45 PM, Jim Nasby <jim.na...@bluetreble.com> wrote: > On 6/23/15 3:22 PM, Merlin Moncure wrote: >> >> I would rephrase that to: "do X to all fields of an object". >> Array handling is pretty good now (minus arrays of arrays, but arrays > > > Except that still won't make it easy to do something to each element of an > array in SQL, which I think would be nice to have.
Maybe, or maybe we're framing the problem incorrectly. To me, it's not really all that difficult to do: select foo(x) from unnest(bar) x; Unless you have to maintain state inside of foo(), in which case I'd probably using the highly underutilized 'window over custom aggregate' technique. merlin -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers