Re: timestamped archive data index searches

From: Andrew Sullivan <andrew(at)libertyrms(dot)info>
To: pgsql-general(at)postgreSQL(dot)org
Subject: Re: timestamped archive data index searches
Date: 2002-07-22 12:44:35
Message-ID: 20020722084435.A4211@mail.libertyrms.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)libertyrms(dot)info> M6K 3E3
+1 416 646 3304 x110

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Devrim GUNDUZ 2002-07-22 12:58:42 Re: Windows - why not?
Previous Message Elielson Fontanezi 2002-07-22 12:36:54 Editor for pgsql