X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8E9369DC9C3 for ; Fri, 17 Feb 2006 11:18:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56151-01 for ; Fri, 17 Feb 2006 11:18:41 -0400 (AST) X-Greylist: whitelisted by SQLgrey- Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by postgresql.org (Postfix) with ESMTP id 370C09DC82F for ; Fri, 17 Feb 2006 11:18:35 -0400 (AST) Received: from imp2-g19.free.fr (imp2-g19.free.fr [212.27.42.2]) by smtp4-g19.free.fr (Postfix) with ESMTP id CF9364F2D1; Fri, 17 Feb 2006 16:18:39 +0100 (CET) Received: by imp2-g19.free.fr (Postfix, from userid 33) id 8649A7AE1E; Fri, 17 Feb 2006 16:18:39 +0100 (MET) Received: from wormhole.x-echo.com (wormhole.x-echo.com [193.252.148.11]) by imp2-g19.free.fr (IMP) with HTTP for ; Fri, 17 Feb 2006 16:18:39 +0100 Message-ID: <1140189519.43f5e94f69584@imp2-g19.free.fr> Date: Fri, 17 Feb 2006 16:18:39 +0100 From: martial.bizel@free.fr To: pgsql-performance@postgresql.org Cc: Tom Lane Subject: Re: split partitioned table across several postgres servers References: <1140018930.43f34ef260de0@imp2-g19.free.fr> <1140022257.22740.225.camel@state.g2switchworks.com> <1140163959.43f585777f2cc@imp2-g19.free.fr> <9163.1140187745@sss.pgh.pa.us> In-Reply-To: <9163.1140187745@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 193.252.148.11 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.659 required=5 tests=[AWL=0.109, NO_REAL_NAME=0.55] X-Spam-Score: 0.659 X-Spam-Level: X-Archive-Number: 200602/281 X-Sequence-Number: 17267 Selon Tom Lane : > martial.bizel@free.fr writes: > > In fact, I don't know how to have explain plan of remote node. > > You send it an EXPLAIN. Please, Could you send me what to put at end of request : select * from dblink('my_connexion', 'EXPLAIN select * from test where number='1' ') as ........ I want to be sure that remote test is seen as partitioned object. thanks a lot. > > You can *not* use a view defined as you suggest if you want decent > performance --- the dblink functions will fetch the entire table > contents and the filtering will be done locally. You'll need to > pass the WHERE conditions over to the remote servers, which more > or less means that you have to give them to the dblink functions > as text. > > regards, tom lane >