Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0DA4C1337B2F for ; Thu, 3 Feb 2011 18:08:17 -0400 (AST) 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 63385-10 for ; Thu, 3 Feb 2011 22:08:09 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148153.authsmtp.net (outmail148153.authsmtp.net [62.13.148.153]) by mail.postgresql.org (Postfix) with ESMTP id 80EFE133616B for ; Thu, 3 Feb 2011 18:08:09 -0400 (AST) Received: from mail-c193.authsmtp.com (mail-c193.authsmtp.com [62.13.128.118]) by punt10.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p13M88s8027885 for ; Thu, 3 Feb 2011 22:08:08 GMT Received: from Sidney-Stratton.local (dsl081-245-111.sfo1.dsl.speakeasy.net [64.81.245.111]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p13M81h6014031 for ; Thu, 3 Feb 2011 22:08:02 GMT Message-ID: <4D4B2740.3070902@agliodbs.com> Date: Thu, 03 Feb 2011 14:08:00 -0800 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: [HACKERS] Slow count(*) again... References: <201102012247.p11Ml6u02682@momjian.us> <4D48914B.4050403@dunslane.net> <4D489AD1.1010105@vmsinfo.com> <4D499E55.4020107@vmsinfo.com> <4D49A6B9.4060608@2ndquadrant.com> <4D49C482.4010707@vmsinfo.com> <4D49F0BA.9000901@2ndquadrant.com> <4D4A16BF.1020304@vmsinfo.com> <4D4A4844.3020409@2ndquadrant.com> <4D4AD9F6.6040903@vmsinfo.com> <4D4AE16E.9040807@peak6.com> <4D4B17B4.9030406@vmsinfo.com> <871v3o3jgu.fsf@cbbrowne.afilias-int.info> In-Reply-To: <871v3o3jgu.fsf@cbbrowne.afilias-int.info> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Server-Quench: 11ae3881-2fe2-11e0-97bb-002264978518 X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdyZgscClZXSx8a IioLCC5HRQ8+YBZL BAkbIhBDJB8RWB5f NVxfJ1xYPXUEQkpF VCReGBUITgIzDi11 aBUnOFdCYEpPXhVo UkJJSlhSFktuBQIJ BwAcVhxsdgRHZ3x1 Z0N9Xj4bXUcHfUcl RE5VEW0FZClia2IZ HkFZJlZXeAtLYx0T P1JiVXJYYXgOYSgy WldrZWpvYWQAeHkM Ehc3IABacmYiNR0R fSs3VQYXMHcrYB8W GlQdLlkDVE0WL0Mu cRlgEVsXOh4UTEsY dwAA X-Authentic-SMTP: 61633136333939.1014:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201102/114 X-Sequence-Number: 42252 On 2/3/11 1:18 PM, Chris Browne wrote: > mladen.gogala@vmsinfo.com (Mladen Gogala) writes: >> I must say that this purist attitude is extremely surprising to >> me. All the major DB vendors support optimizer hints, I don't think that's actually accurate. Can you give me a list of DBMSes which support hints other than Oracle? > Well, the community declines to add hints until there is actual > consensus on a good way to add hints. > > Nobody has ever proposed a way to add hints where consensus was arrived > at that the way was good, so... Well, we did actually have some pretty good proposals (IIRC) for selectively adjusting the cost model to take into account DBA knowledge. These needed some refinement, but in general seem like the right way to go. However, since this system wasn't directly compatible with Oracle Hints, folks pushing for hints dropped the solution as unsatisfactory. This is the discussion we have every time: the users who want hints specifically want hints which work exactly like Oracle's, and aren't interested in a system designed for PostgreSQL. It's gotten very boring; it's like the requests to support MySQL-only syntax. -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com