Re: timestamped archive data index searches - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: timestamped archive data index searches
Date
Msg-id 20020722084435.A4211@mail.libertyrms.com
Whole thread Raw
In response to Re: timestamped archive data index searches  ("Stephen Birch" <sgbirch@hotmail.com>)
List pgsql-general
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@libertyrms.info>                              M6K 3E3
                                         +1 416 646 3304 x110


pgsql-general by date:

Previous
From:
Date:
Subject: Re: [ADMIN] Long update progress
Next
From: Devrim GUNDUZ
Date:
Subject: Re: Windows - why not?