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 E9AD1329D3B for ; Fri, 17 Sep 2004 08:24:00 +0100 (BST) 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 47323-02 for ; Fri, 17 Sep 2004 07:23:50 +0000 (GMT) Received: from cmailg2.svr.pol.co.uk (cmailg2.svr.pol.co.uk [195.92.195.172]) by svr1.postgresql.org (Postfix) with ESMTP id B1BBE329D15 for ; Fri, 17 Sep 2004 08:23:50 +0100 (BST) Received: from modem-573.lion.dialup.pol.co.uk ([217.135.162.61] helo=happyplace) by cmailg2.svr.pol.co.uk with smtp (Exim 4.14) id 1C8D5s-0004SK-2P; Fri, 17 Sep 2004 08:23:44 +0100 From: "Simon Riggs" To: "Iain" , "Joe Conway" , "Christopher Browne" Cc: Subject: Re: Data Warehouse Reevaluation - MySQL vs Postgres -- Date: Fri, 17 Sep 2004 08:39:10 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <00fb01c49bcc$c08dd210$7201a8c0@mst1x5r347kymb> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/186 X-Sequence-Number: 8314 > Iain > Joe's example wasn't excluding partions, as he didn't use a > predicated UNION > ALL view to select from. His queries use an indexed column that allow the > various partitions to be probed at low cost, and he was satisfied > wth that. Agreed - very very interesting design though. > My point in my previous post was that you could still do all that that if > you wanted to, by building the predicated view with UNION ALL of > each of the > child tables. > AFAICS of all the designs proposed there is still only one design *using current PostgreSQL* that allows partitions to be excluded from queries as a way of speeding up queries against very large tables: UNION ALL with appended constants. Best Regards, Simon Riggs