Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 2A05C1337B8D for ; Fri, 4 Feb 2011 09:06:06 -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 10400-06 for ; Fri, 4 Feb 2011 13:05:59 +0000 (UTC) Received: from amadensor.com (amadensor.com [200.46.208.228]) by mail.postgresql.org (Postfix) with ESMTP id F35991337B98 for ; Fri, 4 Feb 2011 09:05:58 -0400 (AST) Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by amadensor.com (Postfix) with ESMTP id 9955918A457C for ; Fri, 4 Feb 2011 13:05:45 +0000 (UTC) Received: from amadensor.com ([200.46.208.228]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 08250-02 for ; Fri, 4 Feb 2011 13:05:38 +0000 (UTC) Received: from [192.168.2.101] (unknown [76.76.81.70]) by amadensor.com (Postfix) with ESMTPA id CA1B918A456F for ; Fri, 4 Feb 2011 13:05:36 +0000 (UTC) Message-ID: <4D4BF99D.7050901@amadensor.com> Date: Fri, 04 Feb 2011 06:05:33 -0700 From: Grant Johnson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 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> <4D4B1F5B.4060403@peak6.com> <4D4B261B.6010303@vmsinfo.com> <4D4B2E8A.7010402@vmsinfo.com> <4D4ADF42020000250003A34C@gw.wicourts.gov> <4D4B3B41.7060803@vmsinfo.com> <4D4B4ACE.5090908@vmsinfo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/179 X-Sequence-Number: 42317 > Yes. And this has little to do with hints. It has to do with years > of development lead with THOUSANDS of engineers who can work on the > most esoteric corner cases in their spare time. Find the pg project a > couple hundred software engineers and maybe we'll catch Oracle a > little quicker. Otherwise we'll have to marshall our resources to do > the best we can on the project ,and that means avoiding maintenance > black holes and having the devs work on the things that give the most > benefit for the cost. Hints are something only a tiny percentage of > users could actually use and use well. > > Write a check, hire some developers and get the code done and present > it to the community. If it's good and works it'll likely get > accepted. Or use EDB, since it has oracle compatibility in it. > I have to disagree with you here. I have never seen Oracle outperform PostgreSQL on complex joins, which is where the planner comes in. Perhaps on certain throughput things, but this is likely do to how we handle dead rows, and counts, which is definitely because of how dead rows are handled, but the easier maintenance makes up for those. Also both of those are by a small percentage. I have many times had Oracle queries that never finish (OK maybe not never, but not over a long weekend) on large hardware, but can be finished on PostgreSQL in a matter or minutes on cheap hardware. This happens to the point that often I have set up a PostgreSQL database to copy the data to for querying and runnign the complex reports, even though the origin of the data was Oracle, since the application was Oracle specific. It took less time to duplicate the database and run the query on PostgreSQL than it did to just run it on Oracle.