Index: doc/src/sgml/func.sgml
===================================================================
RCS file: /projects/cvsroot/pgsql/doc/src/sgml/func.sgml,v
retrieving revision 1.241
diff -c -r1.241 func.sgml
*** doc/src/sgml/func.sgml 14 Mar 2005 18:31:19 -0000 1.241
--- doc/src/sgml/func.sgml 24 Mar 2005 16:25:55 -0000
***************
*** 7330,7339 ****
! Unfortunately, there is no similarly trivial query that can be
! used to improve the performance of count()
! when applied to the entire table.
--- 7330,7348 ----
! When the table has been VACUUMed recently, but
! only then, a good approximation of count(*) for an entire table
! can be obtained as follows:
!
! SELECT reltuples FROM pg_class WHERE relname = 'sometable';
!
!
!
!
! Unfortunately, there is not yet a general trivial query that can
! be used to improve the performance of count().
+