Re: Duda sobre definición de la función interna array_prepend

From: "Ing(dot) Marcos Orti­z " <mlortiz(at)uci(dot)cu>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Duda sobre definición de la función interna array_prepend
Date: 2009-10-30 13:17:22
Message-ID: 4AEAE762.3070103@uci.cu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Alvaro Herrera escribió:
> "Ing. Marcos Orti­z " escribió:
>
>> El código que estaba viendo aquí en el comentario debería ser prepend
>> element into from of array o
>> como está definida?
>>
>
> No entiendo la pregunta ... ¿tú dices si debería decir "into" en vez de
> "onto"? Porque según el Merriam-Webster*, "onto" significa
>
> 1 : to a position on
>
> lo cual me parece correcto. Lo que hace esta función es justamente
> poner un elemento al frente de un arreglo.
>
>
>
>> CREATE OR REPLACE FUNCTION array_prepend(anyelement, anyarray)
>> RETURNS anyarray AS
>> 'array_push'
>> LANGUAGE 'internal' IMMUTABLE
>> COST 1;
>> ALTER FUNCTION array_prepend(anyelement, anyarray) OWNER TO postgres;
>> COMMENT ON FUNCTION array_prepend(anyelement, anyarray) IS 'prepend
>> element onto front of array';
>>
>
> * http://www.merriam-webster.com/dictionary/onto
>
>
Ya era eso mismo
Saludos

--
--
"For me, the purpose is, at least partly, to have joy. Programmers often
feel joy when they can concentrate on the creative side of programming,
so Ruby is designed to make programmers happy."
Yukihiro Matsumoto (Matz), Creator of the Ruby Language

Ing. Marcos Luís Ortíz Valmaseda
System DBA && Rails New User
Centro de Tecnologías de Almacenamiento y Anális de Datos (CENTALAD)
Universidad de las Ciencias Informáticas

Linux User # 418229

http://www.freebsd.org
http://www.postgresql-es.org
http://www.postgresql.org
http://www.planetpostgresql.org
http://www.rubyonrails.org
http://www.ruby-lang.org

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Ing. Marcos Orti­z 2009-10-30 13:21:10 Re: MapReduce + PostgreSQL
Previous Message Alvaro Herrera 2009-10-30 13:08:21 Re: MapReduce + PostgreSQL