Re: array_map not SQL accessible? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: array_map not SQL accessible?
Date
Msg-id 20090130183548.GA7428@alvh.no-ip.org
Whole thread Raw
In response to Re: array_map not SQL accessible?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: array_map not SQL accessible?  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> > I'm wondering why don't we expose the array_map() function to the SQL
> > level.
> 
> It requires some notion of "reference to function", which doesn't really
> exist in SQL.  (Please don't say you're going to pass it a function
> OID.)

regproc maybe?

> > As it happens, I need to use it in the pg_dump support for TOAST
> > reloptions.
> 
> Maybe something involving
>     ARRAY(SELECT foo(x) FROM UNNEST(arrayvariable) x)

Hmm, I'll have a look at this.

-- 
Alvaro Herrera                               http://www.PlanetPostgreSQL.org/
"Linux transformó mi computadora, de una `máquina para hacer cosas',
en un aparato realmente entretenido, sobre el cual cada día aprendo
algo nuevo" (Jaime Salinas)


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: array_map not SQL accessible?
Next
From: Alvaro Herrera
Date:
Subject: Re: array_map not SQL accessible?