| От | Neil Conway |
|---|---|
| Тема | Re: *sigh* |
| Дата | |
| Msg-id | m2ekuflm2t.fsf@mailbox.samurai.com обсуждение исходный текст |
| Ответ на | Re: *sigh* ("Simon Riggs" <simon@2ndquadrant.com>) |
| Список | pgsql-hackers |
"Simon Riggs" <simon@2ndquadrant.com> writes: > Select count(*) could be evaluated against any available index > sub-tables, since all that is required is to count the rows. That would > be significantly faster than a full file scan and accurate too. PostgreSQL stores MVCC information in heap tuples only, so index-only plans such as you're suggesting can't be used (i.e. we need to check the heap tuple to see if a particular index entry is visible to the current transaction). -Neil
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера