From c28c00ecc8c382d4a1d261abbe4d8aacd54407ef Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 22 Nov 2005 23:06:56 +0000 Subject: [PATCH] Add: > > * Add estimated_count(*) to return an estimate of COUNT(*) > > This would use the planner ANALYZE statistatics to return an estimated > count. --- doc/TODO | 7 ++++++- doc/src/FAQ/TODO.html | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/TODO b/doc/TODO index 8368334833..ef25875db6 100644 --- a/doc/TODO +++ b/doc/TODO @@ -2,7 +2,7 @@ PostgreSQL TODO List ==================== Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) -Last updated: Wed Nov 16 13:44:51 EST 2005 +Last updated: Tue Nov 22 17:53:39 EST 2005 The most recent version of this document can be viewed at http://www.postgresql.org/docs/faqs.TODO.html. @@ -841,6 +841,11 @@ Cache Usage faster than a sequential scan it must avoid access to the heap to obtain tuple visibility information. +* Add estimated_count(*) to return an estimate of COUNT(*) + + This would use the planner ANALYZE statistatics to return an estimated + count. + * Allow data to be pulled directly from indexes Currently indexes do not have enough tuple visibility information diff --git a/doc/src/FAQ/TODO.html b/doc/src/FAQ/TODO.html index a3d1050c16..e25b068651 100644 --- a/doc/src/FAQ/TODO.html +++ b/doc/src/FAQ/TODO.html @@ -8,7 +8,7 @@

PostgreSQL TODO List

Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
-Last updated: Wed Nov 16 13:44:51 EST 2005 +Last updated: Tue Nov 22 17:53:39 EST 2005

The most recent version of this document can be viewed at
http://www.postgresql.org/docs/faqs.TODO.html. @@ -762,6 +762,10 @@ first. get a count directly from a unique index, but for this to be faster than a sequential scan it must avoid access to the heap to obtain tuple visibility information. +

+
  • Add estimated_count(*) to return an estimate of COUNT(*) +

    This would use the planner ANALYZE statistatics to return an estimated + count.

  • Allow data to be pulled directly from indexes

    Currently indexes do not have enough tuple visibility information