Re: session variable - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: session variable
Date
Msg-id 200309031755.h83Ht3B06049@candle.pha.pa.us
Whole thread Raw
In response to Re: session variable  (sad <sad@bankir.ru>)
List pgsql-bugs
sad wrote:
> On Monday 01 September 2003 20:57, you wrote:
> > sad wrote:
> > > Good day
> > >
> > > is it possible to define user variables in session ?
> > > If not then is it planned to implement ?
> > > or it is principially impossible in PosqtgreSQL
> >
> > psql has variables, but in general we don't support session varibles.
> > You could create a temp table and put a value in there easily.
>
> that's ok, unless i need to access it in a trigger.

Why can't you grab it out of the temp table from the trigger?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-bugs by date:

Previous
From: Karel Zak
Date:
Subject: Re: to_timestamp not stable if date string shorter than
Next
From: Janko Richter
Date:
Subject: PgSQL74b2: initdb fails (max_connections)