X-Original-To: pgsql-general-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id EEB279FB369 for ; Thu, 7 Sep 2006 01:16:22 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 26694-07 for ; Thu, 7 Sep 2006 04:16:13 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by postgresql.org (Postfix) with ESMTP id 4CA229F9ECD for ; Thu, 7 Sep 2006 01:15:02 -0300 (ADT) Received: by py-out-1112.google.com with SMTP id d80so118499pyd for ; Wed, 06 Sep 2006 21:15:01 -0700 (PDT) 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=gen9Lslqs96RMJ5uYdnb87vTTR9KGtrfJeVcU/5F3lcnrERvvQzZRFSJCfeMins/igTyAv4vk0w4dSVQLkzLPQzkPq7Ifxbroi9auZ7sWndnhZB0ZuYRw80A5QllSFnal3ujtt7K5FsFEUOTlw1Aa2Px3p2ZJAZOqL1/uFO5t+0= Received: by 10.65.35.6 with SMTP id n6mr56479qbj; Wed, 06 Sep 2006 21:15:00 -0700 (PDT) Received: by 10.65.137.12 with HTTP; Wed, 6 Sep 2006 21:15:00 -0700 (PDT) Message-ID: Date: Thu, 7 Sep 2006 00:15:00 -0400 From: "Merlin Moncure" To: "Jean-Christophe Praud" Subject: Re: Asynchronous trigger Cc: pgsql-general@postgresql.org In-Reply-To: <44FF3DAE.5050406@praud.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44FF3DAE.5050406@praud.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.199 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/245 X-Sequence-Number: 100499 On 9/6/06, Jean-Christophe Praud wrote: > Hi all, > > I'm planning to convert an application to postgresql 8.1 (from mysql). > Currently we have some recursive procedures done on the application side > we would want to rewrite as stored pl/pgsql procedures called by triggers... > > Is it possible for these triggers to be asynchronous, in order not to > block the client application during the recursive process ? Have you considered doing the recursion on the server side? http://people.planetpostgresql.org/merlin/index.php?/archives/2-Dealing-With-Recursive-Sets-With-PLPGSQL.html merlin