Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 9D9BD2E2E38 for ; Thu, 6 Mar 2008 11:36:50 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 38214-04 for ; Thu, 6 Mar 2008 11:36:46 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by postgresql.org (Postfix) with ESMTP id 9704E2E2DEF for ; Thu, 6 Mar 2008 11:36:46 -0400 (AST) Received: from sesse by cassarossa.samfundet.no with local (Exim 4.63) (envelope-from ) id 1JXI99-0000Qr-AY; Thu, 06 Mar 2008 16:36:39 +0100 Date: Thu, 6 Mar 2008 16:36:39 +0100 From: "Steinar H. Gunderson" To: Craig James Cc: pgsql-performance@postgresql.org Subject: Re: count * performance issue Message-ID: <20080306153639.GA19442@samfundet.no> References: <47CF8EA6.8070503@mark.mielke.cc> <20080306063643.GB21084@a-kretschmer.de> <3E9C3A51-C28E-4B75-9739-E344DAC72880@fastcrypt.com> <47D00DB2.7040007@emolecules.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47D00DB2.7040007@emolecules.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/124 X-Sequence-Number: 29078 On Thu, Mar 06, 2008 at 07:28:50AM -0800, Craig James wrote: > Count() on Oracle and MySQL is almost instantaneous, even for very large > tables. So why can't Postgres do what they do? In MySQL's case: Handle transactions. (Try COUNT(*) on an InnoDB table.) /* Steinar */ -- Homepage: http://www.sesse.net/