Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 0BF5D9FB1BE for ; Sun, 7 Jan 2007 23:10:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 62091-04 for ; Sun, 7 Jan 2007 23:09:55 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (unknown [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 6B0689FB1BA for ; Sun, 7 Jan 2007 23:10:06 -0400 (AST) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l0839qED014463 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Sun, 7 Jan 2007 19:09:53 -0800 Subject: Re: High update activity, PostgreSQL vs BigDBMS From: "Joshua D. Drake" To: Adam Rich Cc: "'Craig A. James'" , "'Guy Rouillier'" , "'PostgreSQL Performance'" In-Reply-To: <022d01c732cc$69f0e2a0$6400a8c0@dualcore> References: <022d01c732cc$69f0e2a0$6400a8c0@dualcore> Content-Type: text/plain Organization: Command Prompt, Inc. Date: Sun, 07 Jan 2007 19:09:59 -0800 Message-Id: <1168225799.724.0.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Sun, 07 Jan 2007 19:10:02 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/91 X-Sequence-Number: 22692 On Sun, 2007-01-07 at 20:26 -0600, Adam Rich wrote: > I'm using 8.2 and using order by & limit is still faster than MAX() > even though MAX() now seems to rewrite to an almost identical plan > internally. Gonna need you to back that up :) Can we get an explain analyze? > Count(*) still seems to use a full table scan rather than an index scan. > There is a TODO out there to help this. Don't know if it will get done. Joshua D. Drake -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate