Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B3BFF1337B63 for ; Wed, 8 Dec 2010 10:01:47 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 34343-01; Wed, 8 Dec 2010 14:01:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.domeneshop.no (smtp.domeneshop.no [194.63.248.54]) by mail.postgresql.org (Postfix) with ESMTP id 1FFA1133798E; Wed, 8 Dec 2010 10:01:39 -0400 (AST) Received: from [194.237.103.50] (helo=charliex.local) by smtp.domeneshop.no with esmtpa (Exim 4.72) (envelope-from ) id 1PQKaR-0004bZ-4S; Wed, 08 Dec 2010 15:01:39 +0100 Message-ID: <4CFF8FC2.1000401@blogg.se> Date: Wed, 08 Dec 2010 15:01:38 +0100 From: =?UTF-8?B?Um9iZXJ0IEdyYXZzasO2?= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: c k CC: pgsql-general@postgresql.org, pgsql-admin@postgresql.org Subject: Re: [GENERAL] Asynchronous query execution References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201012/58 X-Sequence-Number: 36287 On 2010-12-08 14.35, c k wrote: > Hello, > I would like to know how can we execute the queries asynchronously? > If we use and execute plpgsql functions they just completes the execution or > throws an error on error. In between next sql statement waits for the > previous one to complete the execution. But in few situations it is required > not to wait for getting the completion of previous sql statement. How can > this e achieved? Is this what you're looking for: http://www.postgresql.org/docs/current/interactive/libpq-async.html > > Waiting for you response. > > CPK > -- Regards, Robert "roppert" Gravsjö