X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id C43CAD1B4EC for ; Mon, 8 Sep 2003 10:26:27 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 15419-02 for ; Mon, 8 Sep 2003 07:25:59 -0300 (ADT) Received: from mail.cosmoline.gr (mail.cosmoline.gr [217.69.1.7]) by svr1.postgresql.org (Postfix) with ESMTP id 8DD61D1B4F3 for ; Mon, 8 Sep 2003 07:25:55 -0300 (ADT) Received: from mailhub.cosmoline.gr (mailhub-c.cosmoline.gr [217.69.0.250]) by mail.cosmoline.gr (8.12.3/8.12.3/COSMOLINE) with ESMTP id h88APauG028930; Mon, 8 Sep 2003 13:25:36 +0300 Received: from vasilis.prv.cosmoline.gr (bzzb.cosmoline.gr [217.69.1.28]) (authenticated bits=0) by mailhub.cosmoline.gr (8.12.3/8.12.3/COSMOLINE) with ESMTP id h88APUvE002503; Mon, 8 Sep 2003 13:25:30 +0300 From: Vasilis Ventirozos Reply-To: vendi@cosmoline.com Organization: Cosmoline To: "Donald Fraser" Subject: Re: Are 50 million rows a problem for postgres ? Date: Mon, 8 Sep 2003 13:26:05 +0300 User-Agent: KMail/1.5 References: <200309081032.51586.vendi@cosmoline.com> <001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION> In-Reply-To: <001501c375f0$6d3b4eb0$1664a8c0@DEMOLITION> Cc: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309081326.05261.vendi@cosmoline.com> X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/129 X-Sequence-Number: 10217 This is a simple statement that i run core_netfon=# EXPLAIN select spcode,count(*) from callticket group by spcode; QUERY PLAN --------------------------------------------------------------------------------------- Aggregate (cost=2057275.91..2130712.22 rows=979151 width=4) -> Group (cost=2057275.91..2106233.45 rows=9791508 width=4) -> Sort (cost=2057275.91..2081754.68 rows=9791508 width=4) Sort Key: spcode -> Seq Scan on callticket (cost=0.00..424310.08 rows=9791508 width=4) (5 rows)