From: Zavier Sheran <zsheran@yahoo.com>
To: pgsql-performance@postgresql.org
Subject: slow count()
Date: Thu, 27 Jan 2005 21:17:56 -0800 (PST)
Message-ID: <20050128051756.54352.qmail@web14424.mail.yahoo.com> (raw)
quote from manual:
--
Unfortunately, there is no similarly trivial query
that can be used to improve the performance of count()
when applied to the entire table
--
does count(1) also cause a sequential scan of the
entire table? It should be able to just use the
primary keys.
-Zavier
=====
---
zavier.net - Internet Solutions
---
__________________________________
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: zsheran@yahoo.com
Subject: Re: slow count()
In-Reply-To: <20050128051756.54352.qmail@web14424.mail.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox