Re: proposal for PL packages for 8.3. - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: proposal for PL packages for 8.3.
Date
Msg-id 20060809161317.GG40481@pervasive.com
Whole thread Raw
In response to Re: proposal for PL packages for 8.3.  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Wed, Aug 09, 2006 at 10:55:30AM -0400, Bruce Momjian wrote:
> Martijn van Oosterhout wrote:
> -- Start of PGP signed section.
> > On Wed, Aug 09, 2006 at 08:38:22AM +0100, Richard Huxton wrote:
> > > There are three separate issues we seem to be talking about.
> > > 
> > > 1. Namespaces - visibility or otherwise of objects
> > > 2. Procedural state - something that looks like a shared variable
> > > 3. Packaging - installation/dependency handling
> > 
> > Well, it would be nice to have some clarification about the expected
> > scope and lifetimes of these variables. If two different sessions
> > change the values, what's supposed to happen?
> 
> Right, I am confused whether these are session or schema-local
> variables.  What does Oracle support?  Looking at this:
> 
>     http://thinkoracle.blogspot.com/2005/10/oracle-packages.html
> 
> it seems varaiable are per-session.

Yes, everything in PLSQL is per-session. I don't know of any way to
share data between sessions in PLSQL short of using a (real) table.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: 8.2 features status
Next
From: "Joshua D. Drake"
Date:
Subject: Re: 8.2 features status