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 B8668329DBE for ; Thu, 16 Sep 2004 06:17:49 +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 46035-01 for ; Thu, 16 Sep 2004 05:17:47 +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 4F6AC329D9D for ; Thu, 16 Sep 2004 06:17:45 +0100 (BST) Received: from [192.168.4.3] (account jconway [192.168.4.3] verified) by joeconway.com (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 2188476; Wed, 15 Sep 2004 22:09:16 -0700 Message-ID: <414921F9.400@joeconway.com> Date: Wed, 15 Sep 2004 22:17:45 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christopher Browne Cc: pgsql-performance@postgresql.org Subject: Re: Data Warehouse Reevaluation - MySQL vs Postgres -- References: <20040914223333.GL56059@decibel.org> <60k6uw1cqa.fsf@dev6.int.libertyrms.info> <4147C560.9060702@joeconway.com> In-Reply-To: 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.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/155 X-Sequence-Number: 8283 Christopher Browne wrote: > In the last exciting episode, mail@joeconway.com (Joe Conway) wrote: >>That's exactly what we're doing, but using inherited tables instead of >>a union view. With inheritance, there is no need to rebuild the view >>each time a table is added or removed. Basically, in our application, >>tables are partitioned by either month or week, depending on the type >>of data involved, and queries are normally date qualified. > Where does the constraint come in that'll allow most of the data to be > excluded? Not sure I follow this. > Or is this just that the entries are all part of "bigtable" so that > the self join is only 2-way? We don't have a need for self-joins in our application. We do use a crosstab function to materialize some transposed views of the data, however. That allows us to avoid self-joins in the cases where we might otherwise need them. Joe