Re: timestamped archive data index searches

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: timestamped archive data index searches
Дата
Msg-id 20020722084435.A4211@mail.libertyrms.com
обсуждение исходный текст
Ответ на Re: timestamped archive data index searches  ("Stephen Birch" <sgbirch@hotmail.com>)
Список 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 по дате отправления:

Предыдущее
От:
Дата:
Сообщение: Re: [ADMIN] Long update progress
Следующее
От: Devrim GUNDUZ
Дата:
Сообщение: Re: Windows - why not?