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 8C13DD1C518 for ; Wed, 6 Aug 2003 13:55:49 +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 32258-10 for ; Wed, 6 Aug 2003 10:54:32 -0300 (ADT) Received: from biglumber.com (biglumber.com [207.228.252.42]) by svr1.postgresql.org (Postfix) with SMTP id 451C7D1C517 for ; Wed, 6 Aug 2003 10:55:37 -0300 (ADT) Received: (qmail 7324 invoked from network); 6 Aug 2003 13:55:41 -0000 Received: from biglumber.com (HELO localhost) (207.228.252.42) by 0 with SMTP; 6 Aug 2003 13:55:41 -0000 From: greg@turnstep.com To: pgsql-admin@postgresql.org Cc: pgboy@guthrie.charm.net Cc: pgboy@guthrie.charm.net Subject: Re: counting rows X-PGP-Key: 2529 DF6A B8F7 9407 E944 45B4 BC9B 9067 1496 4AC8 X-Request-PGP: http://www.biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 In-Reply-To: Date: Wed, 6 Aug 2003 13:55:41 -0000 X-Mailer: JoyMail 1.37 Message-ID: <34bd55e0b98d860469d786c8a3391880@biglumber.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/70 X-Sequence-Number: 9793 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > i need to get a row count on a large table. it appears that > select count(*) from ; > always does a table scan, whether i have an index or not, and that is too > slow. http://www.gtsm.com/oscon2003/findrows.html - -- Greg Sabino Mullane greg@turnstep.com PGP Key: 0x14964AC8 200308060951 -----BEGIN PGP SIGNATURE----- Comment: http://www.turnstep.com/pgp.html iD8DBQE/MQgmvJuQZxSWSsgRAkFDAJwPz5C7OljCg4TYqxvw4/WjLr8TlgCgovtS xQPuL/l+QCPgmwVDeX0yocM= =XtnA -----END PGP SIGNATURE-----