X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 55A07D1B8C6 for ; Wed, 3 Sep 2003 17:55:44 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 28198-03 for ; Wed, 3 Sep 2003 14:55:34 -0300 (ADT) Received: from candle.pha.pa.us (momjian.navpoint.com [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 66B3BD1B89D for ; Wed, 3 Sep 2003 14:55:32 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id h83Ht3B06049; Wed, 3 Sep 2003 13:55:03 -0400 (EDT) From: Bruce Momjian Message-Id: <200309031755.h83Ht3B06049@candle.pha.pa.us> Subject: Re: session variable In-Reply-To: <200309021629.26156.sad@bankir.ru> To: sad Date: Wed, 3 Sep 2003 13:55:03 -0400 (EDT) Cc: pgsql-bugs@postgresql.org X-Mailer: ELM [version 2.4ME+ PL106 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/29 X-Sequence-Number: 6660 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