Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 76D292E30B0 for ; Thu, 6 Mar 2008 13:29:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 73525-01 for ; Thu, 6 Mar 2008 13:29:30 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id A3C8D2E304C for ; Thu, 6 Mar 2008 13:29:24 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m26HTMVn018452; Thu, 6 Mar 2008 12:29:22 -0500 (EST) To: Craig James cc: pgsql-performance@postgresql.org Subject: Re: count * performance issue In-reply-to: <47D00DB2.7040007@emolecules.com> References: <20080306060829.GA21084@a-kretschmer.de> <47CF8EA6.8070503@mark.mielke.cc> <20080306063643.GB21084@a-kretschmer.de> <3E9C3A51-C28E-4B75-9739-E344DAC72880@fastcrypt.com> <47D00DB2.7040007@emolecules.com> Comments: In-reply-to Craig James message dated "Thu, 06 Mar 2008 07:28:50 -0800" Date: Thu, 06 Mar 2008 12:29:22 -0500 Message-ID: <18451.1204824562@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/133 X-Sequence-Number: 29087 Craig James writes: > Count() on Oracle and MySQL is almost instantaneous, even for very large tables. So why can't Postgres do what they do? AFAIK the above claim is false for Oracle. They have the same transactional issues we do. regards, tom lane