X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4F06A3A699B for ; Tue, 14 Dec 2004 06:59:40 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56007-05 for ; Tue, 14 Dec 2004 06:59:32 +0000 (GMT) Received: from joeconway.com (wsip-24-249-201-67.sd.sd.cox.net [24.249.201.67]) by svr1.postgresql.org (Postfix) with ESMTP id 3B3D93A6987 for ; Tue, 14 Dec 2004 06:59:36 +0000 (GMT) Received: from [192.168.4.1] (account jconway [192.168.4.1] verified) by joeconway.com (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 2403437; Mon, 13 Dec 2004 22:48:33 -0800 Message-ID: <41BE8F59.9040707@joeconway.com> Date: Mon, 13 Dec 2004 22:59:37 -0800 From: Joe Conway User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Spiegelberg, Greg" Cc: 'Hasnul Fadhly bin Hasan ' , "'pgsql-performance@postgresql.org '" Subject: Re: Trying to create multi db query in one large querie References: <387C22290D3FD71195D300508BF7DB5238AFB6@colmail01.cranel.local> In-Reply-To: <387C22290D3FD71195D300508BF7DB5238AFB6@colmail01.cranel.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200412/177 X-Sequence-Number: 9552 Spiegelberg, Greg wrote: > > My experience with dblink() is that each dblink() is executed serially Correct. If you really want to do multiple queries simultaneously, you would need to write a function very similar to dblink_record, but using asynchonous libpq calls to both remote hosts. See: http://www.postgresql.org/docs/current/static/libpq-async.html HTH, Joe