Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id BF4C0133798E for ; Mon, 18 Oct 2010 11:45:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 02225-04 for ; Mon, 18 Oct 2010 14:45:04 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 4EC881335B36 for ; Mon, 18 Oct 2010 11:45:04 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 267D934801A; Mon, 18 Oct 2010 07:44:58 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EiXr-pnDT78J; Mon, 18 Oct 2010 07:44:55 -0700 (PDT) Received: from perhan.alvh.no-ip.org (200-85-213-6.bk4-dsl.surnet.cl [200.85.213.6]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 81D6C348019; Mon, 18 Oct 2010 07:44:55 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 2AAAA6E4C1; Mon, 18 Oct 2010 11:44:53 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Tom Lane , Robert Haas , Bruce Momjian , Kris Jurka , pgsql-performance Subject: Re: No hash join across partitioned tables? From: Alvaro Herrera To: Samuel Gendler In-reply-to: References: <201002252346.o1PNkXG07892@momjian.us> <9477.1267142614@sss.pgh.pa.us> <603c8f071003020816j77b3ec63wbad0415df003c0f1@mail.gmail.com> <17546.1267546998@sss.pgh.pa.us> <1287205016-sup-542@alvh.no-ip.org> <29559.1287206562@sss.pgh.pa.us> <1287242940-sup-5258@alvh.no-ip.org> Date: Mon, 18 Oct 2010 11:44:53 -0300 Message-Id: <1287412944-sup-7251@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.324 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_NJABL_PROXY=2.224 X-Spam-Level: X-Archive-Number: 201010/290 X-Sequence-Number: 40708 Excerpts from Samuel Gendler's message of lun oct 18 03:13:01 -0300 2010: > On Sat, Oct 16, 2010 at 8:29 AM, Alvaro Herrera > wrote: > > > Excerpts from Samuel Gendler's message of sáb oct 16 02:35:46 -0300 2010: > > > > > An issue with automatically analyzing the entire hierarchy is > > > 'abstract' table definitions. I've got a set of tables for > > > storing the same data at different granularities of aggregation. > > > Within each granularity, I've got partitions, but because the set > > > of columns is identical for each granularity, I've got an abstract > > > table definition that is inherited by everything. I don't need or > > > want statistics kept on that table because I never query across > > > the abstract table, only the parent table of each aggregation > > > granularity > > > > Hmm, I think you'd be better served by using LIKE instead of regular > > inheritance. > > Yep. I inherited the architecture, though, and changing it hasn't been a > high priority. I understand that; my point is merely that maybe we shouldn't work through many hoops to solve this particular facet of the problem, because it seems to be pilot error. (If you really needed to avoid the extra I/O that would be caused by unnecessary analyzes, you could turn autovac off for the abstract tables). -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support