On Sat, Jul 20, 2002 at 07:29:08PM +0000, Stephen Birch wrote:
>
> BTW Another thing I notice with a large database is that count(*) takes
> ages, it
> looks like it has to scan every record. This may be a newbie question or a
> faq, but isn't there a record count kept that would make count(*) return
> quickly?
No. MVCC means that the count() for every connection could be
different. So it has to do a seqscan every time.
A
----
Andrew Sullivan 87 Mowat Avenue
Liberty RMS Toronto, Ontario Canada
<andrew(at)libertyrms(dot)info> M6K 3E3
+1 416 646 3304 x110