Re: [HACKERS] PL/pgSQL - for discussion

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Jan Wieck <jwieck(at)debis(dot)com>
Cc: PostgreSQL HACKERS <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] PL/pgSQL - for discussion
Date: 1998-03-12 16:21:08
Message-ID: 35080B74.9DEB4E6C@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> as I proposed, I'm now starting on the PL/pgSQL loadable
> procedural language.
> Please comment/suggest !
> Someone gave a hint about global variables existing during a
> session. What is a session than? One transaction? The
> backends lifetime? And should global variables be visible by
> more than one function? I vote for NO! In that case we need
> something like packages of functions that share globals.

This looks nice. SQL92 (and presumably SQL3) has the concept of global
and local, temporary and permanent, tables. I believe that it also has
the concept of variables with the same possible combinations of
behaviors, but I'm not finding that in my books at the moment.

Clearly if we have these features in the backend someday, then there
would need to be hooks for your PL to use also. No need for you to
provide these if the backend doesn't help you imho.

I haven't had a chance to read the main portion of your document yet...

- Tom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 1998-03-12 16:26:48 Re: [HACKERS] initdb and xpg_user
Previous Message Jan Wieck 1998-03-12 15:38:32 PL/pgSQL - for discussion