Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 540109FA102; Thu, 28 Dec 2006 23:09:54 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-new, port 10024) with ESMTP id 65669-08; Thu, 28 Dec 2006 23:09:42 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 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 24BA09FA097; Thu, 28 Dec 2006 23:09:47 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-100-202.bk7-dsl.surnet.cl [200.126.100.202]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id kBT39fib025377; Thu, 28 Dec 2006 19:09:46 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 0533A329BA; Fri, 29 Dec 2006 00:09:36 -0300 (CLST) Date: Fri, 29 Dec 2006 00:09:35 -0300 From: Alvaro Herrera To: Cedric BUSCHINI Cc: Novice Postgresql-list , pgsql-admin@postgresql.org Subject: Re: Performances Message-ID: <20061229030935.GC29576@alvh.no-ip.org> Mail-Followup-To: Cedric BUSCHINI , Novice Postgresql-list , pgsql-admin@postgresql.org References: <4593958B.1040601@carax.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4593958B.1040601@carax.com> User-Agent: Mutt/1.5.13 (2006-08-11) 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]); Thu, 28 Dec 2006 19:09:47 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/349 X-Sequence-Number: 24141 Cedric BUSCHINI wrote: > Hello everyone, > > A quick question: > - how long does it take you to perform that query : > "SELECT COUNT(*) FROM A_TABLE;" Longer than I want to wait in any case. In most cases you can rewrite that query to something else; what that something looks like, depends on how exact you want the result to be. So the question to you is, what do you want that number for? -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support