| От | Tom Lane |
|---|---|
| Тема | Re: why select count(*) consumes wal logs |
| Дата | |
| Msg-id | 29298.1541529681@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: why select count(*) consumes wal logs (Michael Nolan <htfoot@gmail.com>) |
| Список | pgsql-general |
Michael Nolan <htfoot@gmail.com> writes:
> On Tue, Nov 6, 2018 at 11:40 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> That represents setting the yes-this-row-is-committed hint bits on the
>> newly loaded rows. The first access to any such row will set that bit,
>> whether it's a select or a VACUUM or whatever.
> Tom, does that include ANALYZE?
Yes, but remember that ANALYZE doesn't scan the whole table; it'll only
set the bit on rows it visits.
(I forget at the moment if it's guaranteed to set the bit on all rows
in each page it examines, or only on the rows it selects to sample.
But in any case it will not examine every page in the table.)
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера