| От | Tom Lane |
|---|---|
| Тема | Re: Fwd: Avoid endless futile table locks in vacuuming. |
| Дата | |
| Msg-id | 22168.1451503025@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Fwd: Avoid endless futile table locks in vacuuming. (Jeff Janes <jeff.janes@gmail.com>) |
| Список | pgsql-hackers |
Jeff Janes <jeff.janes@gmail.com> writes:
> On Dec 29, 2015 4:47 PM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
>> Uh, isn't that what my patch is doing?
> My reading was it does that only if there are no tuples that could be
> frozen. If there are tuples that could be frozen, it actually does
> the freezing, even though that is not necessary unless scan_all is
> true.
Ah, now I see.
> So like the attached, although it is a bit weird to call
> lazy_check_needs_freeze if , under !scan_all, we don't actually care
> about whether it needs freezing but only the hastup.
True, but this is such a corner case that it doesn't seem worth expending
additional code to have a special-purpose page scan for it.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера