Received: from localhost (uranus.hub.org [200.46.204.60]) by postgresql.org (Postfix) with ESMTP id 63FB89F9FB1 for ; Sat, 18 Nov 2006 14:35:41 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.60]) (amavisd-new, port 10024) with ESMTP id 36119-05 for ; Sat, 18 Nov 2006 14:35:38 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from fep02.ttnet.net.tr (mail.ttnet.net.tr [212.175.13.129]) by postgresql.org (Postfix) with ESMTP id A82399F9B3F for ; Sat, 18 Nov 2006 14:35:37 -0400 (AST) Received: from (unknown [192.168.8.102]) by AVGW-I-2.ttnet.net.tr with smtp id 4fc7_94e0d046_7733_11db_9028_001422175ed8; Sat, 18 Nov 2006 20:35:37 +0200 Received: from alamut ([85.101.16.108]) by fep02.ttnet.net.tr with ESMTP id <20061118183534.RJMP1323.fep02.ttnet.net.tr@alamut>; Sat, 18 Nov 2006 20:35:34 +0200 Received: from (unknown [85.101.16.108]) by AVGW-I-6.ttnet.net.tr with smtp id 22a2_93ed9066_7733_11db_8d91_0011433771ac; Sat, 18 Nov 2006 20:35:34 +0200 Date: Sat, 18 Nov 2006 20:34:23 +0200 From: Volkan YAZICI To: Rajesh Kumar Mallah Cc: pgsql-sql@postgresql.org Subject: Re: transactional shared variable in postgresql Message-ID: <20061118183423.GB1346@alamut> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-NAI-Spam-Rules: 1 Rules triggered BAYES_00=-2.5 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.109 tagged_above=0 required=5 tests=AWL, BAYES_20, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: X-Archive-Number: 200611/198 X-Sequence-Number: 26850 Hi, On Nov 18 06:00, Rajesh Kumar Mallah wrote: > Is there any way to set a variable from a web application (using > dbi/perl , libpq etc), and access the same variable from a C trigger > inside a transaction ? Also you may consider using a sequence for storing an integer value. This approach will probably work faster than a temporary table, by the limitation of variable format to be integer. Regards.