pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: sad <sad@bankir.ru>
Cc: pgsql-bugs@postgresql.org
Subject: Re: session variable
Date: Wed, 3 Sep 2003 13:55:03 -0400 (EDT)
Message-ID: <200309031755.h83Ht3B06049@candle.pha.pa.us> (raw)
In-Reply-To: <200309021629.26156.sad@bankir.ru>

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



view thread (12+ messages)  latest in thread

Message-ID: <200309031755.h83Ht3B06049@candle.pha.pa.us>
Permalink:  ../200309031755.h83Ht3B06049@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200309031755.h83Ht3B06049@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pgman@candle.pha.pa.us, sad@bankir.ru, pgsql-bugs@postgresql.org
  Subject: Re: session variable
  In-Reply-To: <200309031755.h83Ht3B06049@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox