Thread: PL/PGSQL Cook Book

PL/PGSQL Cook Book

From
Date:
I've just spent the last day or two trying to get to grips with plpgsql and can't believe how abysmal the
documetentationand examples are.
 
I've been trawling through the mailist lists and I notice there was talk back in 1999 abouta PLPGSQL Cook Book - did
anythingcome of this?
 

If no one is maintaining something like this and people think its a good idea I think we should have another crack at
it.
I'd be happy to maintain something like this and put it up on the web, although I'm only a newbie and would rely upon
usercontribution.
 

Here are some possible sections to help get people thinking. Even if you don't know the answer send me the questions
andI'll add them to the list.  How can I create Tree structures?  Are recursive functions supported?  Whats are the
advantedsdisadvantes of the different scipting langues PL/PGSQL, PL/Perl, PL/Tcl?  How do variable scopes work in
PL/PGSQL? Can I output variables from a function to the command line for debugging purposes?  How to debug PL/PGSQL?
Variousexamples for each of the statements
 

Anyway lets discuss this, a lot could be done just from piecing together relavent tips from this mailing list.
ie there are some good posts on tree structures, which if I'm willing to piece together if people think this project is
worthwhile.
 

Regards

Mark


Re: PL/PGSQL Cook Book

From
ender
Date:
On Friday 09 February 2001 12:23, plpgsql@polar-digital.com wrote:
> I've just spent the last day or two trying to get to grips with plpgsql and
> can't believe how abysmal the documetentation and examples are. I've been
> trawling through the mailist lists and I notice there was talk back in 1999
> abouta PLPGSQL Cook Book - did anything come of this?

a good body of open source plpgsql code is in the openacs distribution at 
openacs.org.

i agree that plpgsql is poorly documented, the only way i found to figure out 
its capabilities were to scour the mailing lists, the openacs code, and the 
plpgsql implementation source. any attempt to better this documentation would 
IMO, be a worthwhile effort.

hth

kapil


Re: Re: PL/PGSQL Cook Book

From
Bruce Momjian
Date:
[ Charset ISO-8859-1 unsupported, converting... ]
> On Friday 09 February 2001 12:23, plpgsql@polar-digital.com wrote:
> > I've just spent the last day or two trying to get to grips with plpgsql and
> > can't believe how abysmal the documetentation and examples are. I've been
> > trawling through the mailist lists and I notice there was talk back in 1999
> > abouta PLPGSQL Cook Book - did anything come of this?
> 
> a good body of open source plpgsql code is in the openacs distribution at 
> openacs.org.
> 
> i agree that plpgsql is poorly documented, the only way i found to figure out 
> its capabilities were to scour the mailing lists, the openacs code, and the 
> plpgsql implementation source. any attempt to better this documentation would 
> IMO, be a worthwhile effort.

I have added PL/PgSQL to the open 7.1 docs list.  Let's see if someone
takes a stab at it.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026