| От | Tom Lane |
|---|---|
| Тема | Re: docs update for count(*) and index-only scans |
| Дата | |
| Msg-id | 26833.1320187862@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | docs update for count(*) and index-only scans (Josh Kupershmidt <schmiddy@gmail.com>) |
| Ответы |
Re: docs update for count(*) and index-only scans
|
| Список | pgsql-docs |
Josh Kupershmidt <schmiddy@gmail.com> writes:
> func.sgml still claims that a sequential scan is the only way to
> execute a SELECT COUNT(*) query. I think this note should just be
> removed from the current docs, given the existence of index-only
> scans; patch attached.
Well, it might need adjustment, but I don't think we should remove it
outright. The people who complain that COUNT(*) is not O(1) are still
going to be complaining. On tables that are not read-mostly, there's
no reason to expect that index-only scans will even provide a material
speed boost, let alone be close to free.
regards, tom lane
В списке pgsql-docs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера