Re: Setting session global variables

From: Jonathan Bartlett <johnnyb6(at)SDF(dot)lonestar(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Setting session global variables
Date: 2001-05-17 02:48:03
Message-ID: Pine.LNX.4.21.0105170245580.17342-100000@sdf.lonestar.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Yes, that's perfect! Actually, I was thinking of a real user, but more
in the fashion of "pretend" users. If you've ever used Oracle apps, it
would be like an apps user, not the user "apps".

Anyway, that's an excellent idea. Thank you much!

Jon

johnnyb6(at)sdf(dot)lonestar(dot)org
SDF Public Access UNIX System - http://sdf.lonestar.org

On Wed, 16 May 2001, Tom Lane wrote:

> Jonathan Bartlett <johnnyb6(at)SDF(dot)lonestar(dot)org> writes:
> > However, the only way I can see to implement this is to have session
> > global variables. Is there a way to fake session global variables with a
> > table? Any comments would be appreciated.
>
> You could do it with temp tables: the same temp table name would refer
> to a different table in each session.
>
> (You realize, of course, that CURRENT_USER already exists per SQL spec.
> I assume you just meant that you'd like to have things *like*
> CURRENT_USER, but defined by yourself...)
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message juerg.rietmann 2001-05-17 12:32:40 how to add an new record from part of an old one
Previous Message Forest Wilkinson 2001-05-17 02:18:51 Re: [HACKERS] Re: possible row locking bug in 7.0.3 & 7.1