Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 4A5209FB4E9; Fri, 13 Oct 2006 22:29:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 17549-06; Fri, 13 Oct 2006 22:29:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id C34619FB4E0; Fri, 13 Oct 2006 22:29:27 -0300 (ADT) Received: from alvh.no-ip.org (200-126-100-219.bk7-dsl.surnet.cl [200.126.100.219]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id k9E1T72S028183; Fri, 13 Oct 2006 18:29:07 -0700 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 9159AC2DC70; Fri, 13 Oct 2006 21:29:01 -0400 (CLT) Date: Fri, 13 Oct 2006 21:29:01 -0400 From: Alvaro Herrera To: "Jim C. Nasby" Cc: Josh Berkus , pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org Subject: Re: [HACKERS] Hints proposal Message-ID: <20061014012901.GC28725@alvh.no-ip.org> Mail-Followup-To: "Jim C. Nasby" , Josh Berkus , pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org References: <20061012151439.GT28647@nasby.net> <200610121358.22739.josh@agliodbs.com> <20061013161614.GT28647@nasby.net> <200610131557.24420.josh@agliodbs.com> <20061013233615.GA381@nasby.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061013233615.GA381@nasby.net> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Fri, 13 Oct 2006 18:29:12 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.767 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200610/276 X-Sequence-Number: 21405 Jim C. Nasby wrote: > So, does anyone out there have a plan for how we could give user's the > ability to control the planner at a per-table level in 8.3 or even 8.4? Per-table level? Some of the problems that have been put forward have to do with table combinations (for example selectivity of joins), so not all problems will be solved with a per-table design. I think if it were per table, you could get away with storing stuff in pg_statistics or some such. But how do you express statistics for joins? How do you express cross-column correlation? -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.