| От | Tom Lane |
|---|---|
| Тема | Re: fast count(*) through statistics collector |
| Дата | |
| Msg-id | 24335.1205910412@sss.pgh.pa.us обсуждение |
| Ответ на | fast count(*) through statistics collector (Artem Yazkov <markkrass@inbox.ru>) |
| Список | pgsql-hackers |
Artem Yazkov <markkrass@inbox.ru> writes:
> By viewing this list, I see a lot of discussions on the problem of
> "fast count (*)", but acceptable decision have not been formulated.
> Well, I make bold to propose own view on the problem.
A number of the things you suggest would be good for improving the
performance of the stats subsystem. But I think you have failed to
grasp two pretty fundamental issues: (1) the correct answer to count(*)
varies depending on the observer's snapshot, and (2) the stats subsystem
is built to provide approximate answers not exact ones.
I encourage you to work on fixing the stats subsystem's performance
issues ... but if you think that's going to provide a substitute for
count(*), you're mistaken.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера