X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AAB82DAFA4 for ; Wed, 26 Oct 2005 18:32:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 01691-03 for ; Wed, 26 Oct 2005 21:31:57 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 9CE42DAFA3 for ; Wed, 26 Oct 2005 18:31:58 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j9QLVvwD011776; Wed, 26 Oct 2005 17:31:57 -0400 (EDT) To: aurora Cc: Mark Lewis , pgsql-performance@postgresql.org Subject: Re: browsing table with 2 million records In-reply-to: References: <1130360385.1156.12.camel@archimedes> Comments: In-reply-to aurora message dated "Wed, 26 Oct 2005 14:22:58 -0700" Date: Wed, 26 Oct 2005 17:31:57 -0400 Message-ID: <11775.1130362317@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200510/396 X-Sequence-Number: 15164 aurora writes: > It would still be helpful if select count(*) can perform well. If you can settle for an approximate count, pg_class.reltuples might help you. regards, tom lane