Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 8B7FE9FB349 for ; Mon, 16 Oct 2006 09:34:43 -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 85335-05 for ; Mon, 16 Oct 2006 09:34:38 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from linda-4.paradise.net.nz (linda-4.paradise.net.nz [203.96.152.183]) by postgresql.org (Postfix) with ESMTP id 3D3FB9FB32A for ; Mon, 16 Oct 2006 09:34:38 -0300 (ADT) Received: from smtp-1.paradise.net.nz (tclsnelb1-src-1.paradise.net.nz [203.96.152.172]) by linda-4.paradise.net.nz (Paradise.net.nz) with ESMTP id <0J7800B9CAXN7M@linda-4.paradise.net.nz> for pgsql-performance@postgresql.org; Tue, 17 Oct 2006 01:34:35 +1300 (NZDT) Received: from [192.168.1.11] (218-101-28-242.dsl.clear.net.nz [218.101.28.242]) by smtp-1.paradise.net.nz (Postfix) with ESMTP id E186713755B4; Tue, 17 Oct 2006 01:34:34 +1300 (NZDT) Date: Tue, 17 Oct 2006 01:34:30 +1300 From: Mark Kirkwood Subject: Re: Hints proposal In-reply-to: <4532D17B.20106@modgraph-usa.com> To: "Craig A. James" Cc: pgsql-performance@postgresql.org Message-id: <45337C56.8000209@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit User-Agent: Thunderbird 1.5.0.7 (X11/20061003) References: <78ED28FACE63744386D68D8A9D1CF5D4209CBF@MAIL.corp.lumeta.com> <4532D17B.20106@modgraph-usa.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.033 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200610/293 X-Sequence-Number: 21422 Craig A. James wrote: > > > 2. Hints > a) On a aesthetic/theoretical level, hints suck. They're ugly and rude > b) On a practical level, introducing hints will cause short- and > long-term problems > c) Hints would help DBAs solve urgent problems for which there is no > other solution Pretty good summary! Maybe there should be a 2d), 2e) and 2f). 2d) Hints will damage the ongoing development of the optimizer by reducing or eliminating test cases for its improvement. 2e) Hints will divert developer resource away from ongoing development of the optimizer. 2f) Hints may demoralize the developer community - many of whom will have been attracted to Postgres precisely because this was a realm where crude solutions were discouraged. I understand that these points may seem a bit 'feel-good' and intangible - especially for the DBA's moving to Pg from Oracle, but I think they illustrate the mindset of the Postgres developer community, and the developer community is, after all - the primary reason why Pg is such a good product. Of course - if we can find a way to define 'hint like' functionality that is more in keeping with the 'Postgres way' (e.g. some of the relation level statistical additions as discussed), then some of 2d-2f) need not apply. Best wishes Mark