X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 17CD4D7CD1 for ; Fri, 26 Aug 2005 19:41:25 -0300 (ADT) 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 13471-05 for ; Fri, 26 Aug 2005 22:41:22 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by svr1.postgresql.org (Postfix) with ESMTP id 06A90D736E for ; Fri, 26 Aug 2005 19:41:20 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i11so44827wra for ; Fri, 26 Aug 2005 15:41:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=t/gbpOpgY+8BuMOZ9ius3PSF8+sLSzR/UuEsecLttNe3+LjI0mSaN1IOzUGFvoT9x8OR935DS5Ohit8byYELAZNDB548HM520IFxJAbDK5or/1zYV8z09Vvd7Yn9cSJbD9e+kvmSg6Vpf4O4LLdgPHVVdR8bXcfthOkVRdw9iRg= Received: by 10.54.14.70 with SMTP id 70mr3994410wrn; Fri, 26 Aug 2005 15:41:21 -0700 (PDT) Received: from localhost ( [61.246.59.42]) by mx.gmail.com with ESMTP id 12sm15089wrl.2005.08.26.15.41.17; Fri, 26 Aug 2005 15:41:21 -0700 (PDT) Date: Sat, 27 Aug 2005 04:21:23 +0530 From: Ligesh To: Frank Wiles Cc: pgsql-performance@postgresql.org Subject: Re: Sending a select to multiple servers. Message-ID: <20050826225123.GB24476@lxlabs.com> Reply-To: gxlists@gmail.com References: <20050826152409.GA22060@lxlabs.com> <20050826110459.03cce4d9.frank@wiles.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050826110459.03cce4d9.frank@wiles.org> User-Agent: Mutt/1.5.10i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 required=5 tests=[RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200508/456 X-Sequence-Number: 14203 On Fri, Aug 26, 2005 at 11:04:59AM -0500, Frank Wiles wrote: > On Fri, 26 Aug 2005 20:54:09 +0530 > Ligesh wrote: > Mostly because every situation is different, you may have > 10 servers and need 10 rows of results, others may need something > entirely different. > No. I have say 'm' number of servers, and I need 'n' rows. To get the results, you need to run the query against all the 'm' servers, which will return 'm x n' results, then you have to re-sort it and drop the 'm x n - n' rows and return only the 'n'. So this is like retrieving the 'n' rows amongst ALL the servers, that satisfy your search criteria. Once you retrieve the data, you will know which server each row belongs to, and you can do the writes yourself at the higher level. Thanks. -- :: Ligesh :: http://ligesh.com