Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id A58999FBB6C for ; Thu, 22 Mar 2007 11:33:41 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 18873-09 for ; Thu, 22 Mar 2007 11:33:25 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.225]) by postgresql.org (Postfix) with ESMTP id 06A4B9FBA5D for ; Thu, 22 Mar 2007 11:33:31 -0300 (ADT) Received: by wr-out-0506.google.com with SMTP id 76so623231wra for ; Thu, 22 Mar 2007 07:33:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=epNcDN/Ji2tDFChewxXyYb19rYiDIFMWmP6NE5cTYaYdQwviVl9XTB08onlx+mVpl4uhady0wel6TesibpROtLiH0CWA4CfoeSUCQS2SXPZJpqVPTXQ7R0nLLBPkFtliHDYFV3bp82sG3hlKpAnnhLBg7K2YwhSaUs8ofs0eBNo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=OP+JDpLSzdz2vcPT6g2lxK1TcRj3jWdpKoQ7LXuhezW91fqF94zu5B+wDQlzzY5LHsJQwoGXWO7xiDmYExm5eIDr1HNWXRp5PxndwczgOxKhcF8ItZzaHXH2JaHFS64R1/7pygIb9NtD9w4t8fNasiMYD7vTPHOpCVeDc279fmA= Received: by 10.114.185.8 with SMTP id i8mr625177waf.1174574009958; Thu, 22 Mar 2007 07:33:29 -0700 (PDT) Received: by 10.114.181.14 with HTTP; Thu, 22 Mar 2007 07:33:29 -0700 (PDT) Message-ID: <36e682920703220733s322788f7i5f89339466c7938c@mail.gmail.com> Date: Thu, 22 Mar 2007 10:33:29 -0400 From: "Jonah H. Harris" To: "Merlin Moncure" Subject: Re: Performance of count(*) Cc: "Andreas Tille" , pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/320 X-Sequence-Number: 23725 On 3/22/07, Merlin Moncure wrote: > As others suggest select count(*) from table is very special case > which non-mvcc databases can optimize for. Well, other MVCC database still do it faster than we do. However, I think we'll be able to use the dead space map for speeding this up a bit wouldn't we? -- Jonah H. Harris, Software Architect | phone: 732.331.1324 EnterpriseDB Corporation | fax: 732.331.1301 33 Wood Ave S, 3rd Floor | jharris@enterprisedb.com Iselin, New Jersey 08830 | http://www.enterprisedb.com/