[Pgsql-ayuda] Trigger y lenguajes procedurales

Patricio Muñoz pmunoz@cmet.net
Tue, 17 Feb 2004 17:03:07 -0300


Toda la razon Manuel, buscando en la documentacion encontre lo siguiente:

Missing Features
The following features are currently missing from PL/Perl, but they would
make welcome contributions.

1. PL/Perl functions cannot call each other directly (because they are
anonymous subroutines inside Perl). There's presently no way for them to
share global variables, either.

2. PL/Perl cannot be used to write trigger functions.

3 .DBD::PgSPI or similar capability should be integrated into the standard
PostgreSQL distribution.

La caracteristica 2 menciona lo que citaste

"Patricio Muñoz" <pmunoz@cmet.net> writes:

> Tengo una funcion escrita en plperlu y funciona correctamente, pero al
> momento de crear el trigger, arroja el error que no existe tal funcion.
> Ahora bien la funcion recibe y retorna un string.

"Manuel Sugawara" <masm@fciencias.unam.mx> writes

> Porque la función tiene que regresar un tipo opaco llamado TRIGGER y
> para esto es necesario que el lenguaje sepa como hacerlo. Perl aún no
> sabe :-( IIRC.

> Saludos,
> Manuel.