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 248AED1B8C5 for ; Tue, 2 Sep 2003 12:40:31 +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 54974-06 for ; Tue, 2 Sep 2003 09:40:23 -0300 (ADT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.183]) by svr1.postgresql.org (Postfix) with ESMTP id 62670D1B8A8 for ; Tue, 2 Sep 2003 09:40:20 -0300 (ADT) Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19uASI-000502-00; Tue, 02 Sep 2003 14:40:18 +0200 Received: from [80.129.133.240] (helo=pse-consulting.de) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 19uASH-0003vi-00; Tue, 02 Sep 2003 14:40:17 +0200 Message-ID: <3F548FD0.5070600@pse-consulting.de> Date: Tue, 02 Sep 2003 14:40:48 +0200 From: Andreas Pflug User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: sad Cc: pgsql-bugs@postgresql.org Subject: Re: session variable References: <200309011657.h81Gva817128@candle.pha.pa.us> <200309021629.26156.sad@bankir.ru> In-Reply-To: <200309021629.26156.sad@bankir.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/10 X-Sequence-Number: 6641 sad wrote: >>>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. > No problem to use a temp table in a trigger (which is local to the session), I do so myself. Still, session variables would be nice, making coding a little bit more comfortable. > >where may i ask a programming and perfomance question? >i think mailing such questions to "BUGS" is not a good idea. > Just use the pgsql-sql and pgsql-performance mailing lists. Regards, Andreas