X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 76A77DAD64 for ; Thu, 24 Nov 2005 05:24:38 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80244-05 for ; Thu, 24 Nov 2005 09:24:39 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from linda-1.paradise.net.nz (bm-1a.paradise.net.nz [203.96.152.180]) by svr1.postgresql.org (Postfix) with ESMTP id DBB74D6EBC for ; Thu, 24 Nov 2005 05:24:35 -0400 (AST) Received: from smtp-3.paradise.net.nz (tclsnelbe2-src-nat-1 [203.96.152.177]) by linda-1.paradise.net.nz (Paradise.net.nz) with ESMTP id <0IQG00FYKCT1WO@linda-1.paradise.net.nz> for pgsql-performance@postgresql.org; Thu, 24 Nov 2005 22:24:37 +1300 (NZDT) Received: from [192.168.1.11] (218-101-28-4.dsl.clear.net.nz [218.101.28.4]) by smtp-3.paradise.net.nz (Postfix) with ESMTP id 2B27E139AD8A; Thu, 24 Nov 2005 22:24:37 +1300 (NZDT) Date: Thu, 24 Nov 2005 22:24:35 +1300 From: Mark Kirkwood Subject: Re: Hardware/OS recommendations for large databases ( In-reply-to: To: Luke Lonergan Cc: stange@rentec.com, Greg Stark , Dave Cramer , Joshua Marsh , pgsql-performance@postgresql.org Message-id: <438586D3.9010701@paradise.net.nz> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla Thunderbird 1.0.6 (X11/20051106) References: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.207 required=5 tests=[AWL=0.207] X-Spam-Score: 0.207 X-Spam-Level: X-Archive-Number: 200511/486 X-Sequence-Number: 15743 Luke Lonergan wrote: > That says it's something else in the path. As you probably know there is a > page lock taken, a copy of the tuple from the page, lock removed, count > incremented for every iteration of the agg node on a count(*). Is the same > true of a count(1)? > Sorry Luke - message 3 - I seem to be suffering from a very small working memory buffer myself right now, I think it's after a day of working with DB2 ... :-) Anyway, as I read src/backend/parser/gram.y:6542 - count(*) is transformed into count(1), so these two are identical. Cheers (last time tonight, promise!) Mark