Re: Spped of max

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andy DePue <adepue(at)eworksmart(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Spped of max
Date: 2002-05-16 02:51:28
Message-ID: 29766.1021517488@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Andy DePue <adepue(at)eworksmart(dot)com> writes:
> Just curious... but often, I have only needed a "fairly" accurate
> count of rows. As in, outside the context of a transaction. In other
> words, how difficult would it be to keep track of the number of fully
> committed and visible rows in a table?

Well, if you run vacuum (or analyze) on a reasonably frequent basis,
seems like pg_class.reltuples would do fine.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Lockhart 2002-05-16 03:04:29 Re: How to include PostgreSQL Copyright notice
Previous Message patrick k . 2002-05-16 02:39:22 How to include PostgreSQL Copyright notice