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 F3F58D7D2F for ; Fri, 26 Aug 2005 19:35:42 -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 11841-08 for ; Fri, 26 Aug 2005 22:35:40 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by svr1.postgresql.org (Postfix) with ESMTP id 1B611D7D2B for ; Fri, 26 Aug 2005 19:35:39 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i21so295550wra for ; Fri, 26 Aug 2005 15:35:42 -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=nl1D+2AeOgBzCkmkbbMvMQyFQScsF8O6c1VvG724bHpQxQjFFyte9/f50BgPdIhDxgb0ADXKclrs2NBt8x+wENPW+VZG6vLrOoBtz5aXWqzte7+QuFb5ShgyMauPKzT0uDSI64l3Z4+FcGcefmtrT24fgxu2iOyi/qi0Dqf8sv4= Received: by 10.54.32.62 with SMTP id f62mr1536730wrf; Fri, 26 Aug 2005 15:35:42 -0700 (PDT) Received: from localhost ( [61.246.59.42]) by mx.gmail.com with ESMTP id 27sm5524422wrl.2005.08.26.15.35.37; Fri, 26 Aug 2005 15:35:42 -0700 (PDT) Date: Sat, 27 Aug 2005 04:15:40 +0530 From: Ligesh To: Frank Wiles Cc: pgsql-performance@postgresql.org Subject: Re: Sending a select to multiple servers. Message-ID: <20050826224540.GA24476@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=[AWL=-0.000, RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200508/455 X-Sequence-Number: 14202 On Fri, Aug 26, 2005 at 11:04:59AM -0500, Frank Wiles wrote: > On Fri, 26 Aug 2005 20:54:09 +0530 > This is typically handled by the application layer, not a standard > client. Mostly because every situation is different, you may have > 10 servers and need 10 rows of results, others may need something > entirely different. > > This isn't really a "cluster" either. In a clustered environment > you would send the one query to any of the 10 servers and it would > return the proper results. > > But like I said this type of application is fairly trivial to write > in most scripting or higher level languages. > The cluster logic is sort of implemented by this client library. If you write this at higher level the scalability becomes an issue. For 10 servers it is alright. If you want to retrieve 100 rows, and there are 100 servers, you will have a total result set of 10,000, which should be re-sorted and the 9900 of them should be droped, and only the 100 should be returned. Anyway, what I want to know is, if there is such a functionality offered by some C library. Thanks. -- :: Ligesh :: http://ligesh.com