| From: | "Jaime Casanova" <systemguards(at)gmail(dot)com> |
|---|---|
| To: | "Arturo Munive" <arturomunive(at)gmail(dot)com> |
| Cc: | Postgresql <pgsql-es-ayuda(at)postgresql(dot)org> |
| Subject: | Re: diferencia entre funciones |
| Date: | 2007-06-26 00:16:42 |
| Message-ID: | c2d9e70e0706251716o444a5030g3d4735715caa999f@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
On 6/25/07, Arturo Munive <arturomunive(at)gmail(dot)com> wrote:
> Disculpen la "ingenuidad" de mi pregunta, pero ahi va
>
> ¿Hay alguna diferencia en cuanto a rendimiento o algun otro factor al
> escribir funciones SQL contra escribir funciones en PL/pgSQL?
> es decir hay alguna razón para preferir un tipo de funciones sobre otro?
>
leyendo http://www.postgresql.org/docs/8.2/static/xplang.html, se me
ocurre que la respuesta seria porque los lenguajes procedurales
necesitaran una etapa adicional de parse/analysis y determinar que
debe ser enviado al servidor como SQL para que sea ejecutado y que se
queda para ser ejecutado por el handler (manejador del lenguaje)
> cuando debo escribir una funcion en SQL y cuando en PL/pgSQL?
>
cuando necesites hacer algo que vaya mas alla de las capacidades de SQL
--
Atentamente,
Jaime Casanova
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jaime Casanova | 2007-06-26 00:23:16 | Re: ERROR AUXILIO POR FAVOR |
| Previous Message | Arturo Munive | 2007-06-25 23:38:54 | diferencia entre funciones |