Regarding the question about packages from oracle and the PG functions implementation. PG does not have the package concept or library of pl/pgsql functions.
It just implements functions and they can be separated by user's different objets or different schema's objets.
You have this in PG so far, and it works pretty well in terms of operational uses. Maybe speaking about performance and organizations issues, it has to grow much more yet.
--- El lun, 4/8/08, Wm.A.Stafford <stafford(at)marine(dot)rutgers(dot)edu> escribió:
> De: Wm.A.Stafford <stafford(at)marine(dot)rutgers(dot)edu>
> Asunto: [NOVICE] pl/pgSQL development environment
> Para: pgsql-novice(at)postgresql(dot)org
> Fecha: lunes, 4 agosto, 2008 3:40
> I have to convert a large number of Oracle pl/sql scripts to
> 8.3 pl/pgSQL and
> I am stuck on the most basic part, how to do development
> with pl/pgSQL.
> First of all what is the development model for pl/pgSQL
> development, i.e.
> What is the 'industry standard' way edit, compile
> and test functions
> and procedures?
> I don't see any examples of a complete process in the
> I created the following simple function as a first try:
> CREATE OR REPLACE FUNCTION testfunc() RETURNS integer AS $$
> RAISE DEBUG 'Output from testfunc';
> return 2 ;
> END ;
> $$ LANGUAGE plpgsql;
> Using both psql and pgADMINIII I was able to load and
> execute this and
> see 2 as the output but I did not
> see the output of the RAISE statement. The RAISE output
> was not in the
> log file either.
> Where does it go and can it be redirected to stdout?
> Since pl/pgSQL does not have packages, what is the usual
> way of managing
> groups of related functions and procedures. For example I
> a group pl/sql procedures that call functions from a
> library. The
> library is one package. The procedures that
> use the library are in separate packages.
> Thanks for any help and/or guidance,
> Bill Stafford
> Sent via pgsql-novice mailing list
> To make changes to your subscription:
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.
In response to
pgsql-novice by date
|Next:||From: Tom Lane||Date: 2008-08-04 23:09:10|
|Subject: Re: pl/pgSQL development environment |
|Previous:||From: Richard Broersma||Date: 2008-08-04 19:59:48|
|Subject: Re: pl/pgSQL development environment|