Re: Call lazy_check_wraparound_failsafe earlier for parallel vacuum

Поиск
Список
Период
Сортировка
От Imseih (AWS), Sami
Тема Re: Call lazy_check_wraparound_failsafe earlier for parallel vacuum
Дата
Msg-id A3F39AA3-A509-4EEF-BEFC-467DB3BA1246@amazon.com
обсуждение исходный текст
Ответ на Re: Call lazy_check_wraparound_failsafe earlier for parallel vacuum  (Peter Geoghegan <pg@bowt.ie>)
Список pgsql-hackers
>    I adjusted the FAILSAFE_EVERY_PAGES comments, which now point out that
>    FAILSAFE_EVERY_PAGES is a power-of-two. The implication is that the
>    compiler is all but guaranteed to be able to reduce the modulo
>    division into a shift in the lazy_scan_heap loop, at the point of the
>    failsafe check. I doubt that it would really matter if the compiler
>    had to generate a DIV instruction, but it seems like a good idea to
>    avoid it on general principle, at least in performance sensitive code.

Thank you! 

Regards,

Sami Imseih
Amazon Web Services (AWS)


В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Allow WindowFuncs prosupport function to use more optimal WindowClause options
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Add LSN along with offset to error messages reported for WAL file read/write/validate header failures