Re: proposal for PL packages for 8.3.

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, Richard Huxton <dev(at)archonet(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Pavel Stehule <pavel(dot)stehule(at)hotmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: proposal for PL packages for 8.3.
Date: 2006-08-09 16:13:17
Message-ID: 20060809161317.GG40481@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua D. Drake 2006-08-09 16:13:59 Re: 8.2 features status
Previous Message Bruce Momjian 2006-08-09 16:12:19 Re: 8.2 features status