Make IsInstallXLogFileSegmentActive() an assert-only function

Поиск
Список
Период
Сортировка
От Bharath Rupireddy
Тема Make IsInstallXLogFileSegmentActive() an assert-only function
Дата
Msg-id CALj2ACUYtSSGQn-gei+B-VsBeEziFdb-FwXywmhKDkgL_XCmaw@mail.gmail.com
обсуждение исходный текст
Список pgsql-hackers
Hi,

IsInstallXLogFileSegmentActive() is currently being used for assert
checks. How about making it an assert-only function to disable it on
production builds? This can shave an unused function on production
builds. We can easily switch back when there comes a real caller
outside of xlog.c. I'm attaching a tiny patch for this.

Thoughts?

-- 
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Вложения

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

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Make use of assign_checkpoint_completion_target() to calculate CheckPointSegments correctly
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: Perform streaming logical transactions by background workers and parallel apply