Received: from localhost (uranus.hub.org [200.46.204.60]) by postgresql.org (Postfix) with ESMTP id E52FF9F9FB1 for ; Sat, 18 Nov 2006 13:58:40 -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 05993-05 for ; Sat, 18 Nov 2006 13:58:37 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by postgresql.org (Postfix) with ESMTP id DE8809F9B3F for ; Sat, 18 Nov 2006 13:58:36 -0400 (AST) Received: by py-out-1112.google.com with SMTP id d32so630947pye for ; Sat, 18 Nov 2006 09:58:36 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RGqv/U7etCj7McgeUNJr0TeJxKkbN5Z+N7UWnzLM1etrnVMgeO6BqSPIB6l7/MNTv0LCEHQ46Mk30oRoJRpyzCYzA84JT4hthgdrrqVkXrsJz+r34/SlrQYmI3TGaKgB3UY9vDGCDU648zMlfIrhRjLteY3lFTOJhHLNRpszs/8= Received: by 10.35.27.1 with SMTP id e1mr4697450pyj.1163872714074; Sat, 18 Nov 2006 09:58:34 -0800 (PST) Received: by 10.35.80.10 with HTTP; Sat, 18 Nov 2006 09:58:33 -0800 (PST) Message-ID: Date: Sat, 18 Nov 2006 23:28:34 +0530 From: "Rajesh Kumar Mallah" To: "Volkan YAZICI" Subject: Re: transactional shared variable in postgresql Cc: pgsql-sql@postgresql.org In-Reply-To: <20061118173656.GA1346@alamut> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061118173656.GA1346@alamut> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/197 X-Sequence-Number: 26849 On 11/18/06, Volkan YAZICI wrote: > 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 ? > > Why don't you use a temporary table for that purpose? sounds good, what i understand you mean to say that i create a temp table (with on commit drop option) insert my value there and read the value from inside the trigger. i do not know about the performance aspect of this approach though. i was thinking of a method that could be performed everytime my webapp connected to database. regds mallah. > > > Regards. >