Re: *sigh*

Поиск
Список
Период
Сортировка
От Shridhar Daithankar
Тема Re: *sigh*
Дата
Msg-id 200312031446.30141.shridhar_daithankar@myrealbox.com
обсуждение исходный текст
Ответ на Re: *sigh*  (Mark Kirkwood <markir@paradise.net.nz>)
Ответы Re: *sigh*  (Mark Kirkwood <markir@paradise.net.nz>)
Список pgsql-hackers
On Wednesday 03 December 2003 13:59, Mark Kirkwood wrote:
> How about:
>
> Implement a function "estimated_count" that can be used instead of
> "count". It could use something like the algorithm in
> src/backend/commands/analyze.c to get a reasonably accurate psuedo count
> quickly.
>
> The advantage of this approach is that "count" still means (exact)count
> (for your xact snapshot anyway). Then the situation becomes:
>
> Want a fast count? - use estimated_count(*)
> Want an exact count - use count(*)

Something like select reltuples from pg_class where relname='foo'?
Shridhar



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Roman"
Дата:
Сообщение: Getting dump from old version
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: BTree index and optimizer