Re: Stored Procedures Generator - Mailing list pgadmin-support

From Jean-Michel POURE
Subject Re: Stored Procedures Generator
Date
Msg-id 200205141143.44311.jm.poure@freesurf.fr
Whole thread Raw
In response to Stored Procedures Generator  ("Samuele Brignoli" <samuele.brignoli@darpha.com>)
List pgadmin-support
Le Mardi 14 Mai 2002 09:43, Samuele Brignoli a écrit :
> Do you know if exists a tool that automagically generate stored procedures
> for an existing postgresql's table ? Maybe for insert, delete, update, this
> basic things.

Presently, pAdmin2 is not an 'automatic' code generator. pgAdmin2 allows
adding, modifying and dropping triggers. Each trigger is linked to a
PostgreSQL server-side function and to a table. Functions can be written in
several languages : PLpgSQL, PLperl, PLpython, PLtk and soon PLjava...

This is one of several advanced PostgreSQL features. The only thing is that
your PostgreSQL server needs to be compiled with the required server-side
languages. In Linux, binaries are delivered with PLpgSQL built in and there
is an RPM for each other language.

To enable PLpgSQL server-side language :
postgres@localhost> createlang plpgsql database_name

Further information:
> PostgreSQL online doc :
http://www.postgresql.org/idocs/index.php?programmer-pl.html

> Example of downloading PostgreSQL binaries
Redhat :
http://www.rpmfind.net//linux/RPM/rawhide/1.0/i386/RedHat/RPMS/PByName.html
Mandrake :
http://www.rpmfind.net/linux/RPM/cooker/cooker/i586/Mandrake/RPMS/PByName.html

Have fun,
Cheers, Jean-Michel POURE

---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


pgadmin-support by date:

Previous
From: "Samuele Brignoli"
Date:
Subject: Stored Procedures Generator
Next
From: Jean-Michel POURE
Date:
Subject: Re: Stored Procedures Generator