Re: Refactoring of pg_resetwal/t/001_basic.pl

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Refactoring of pg_resetwal/t/001_basic.pl
Дата
Msg-id Zg4JWLBHD4xfPGJG@paquier.xyz
обсуждение исходный текст
Ответ на Re: Refactoring of pg_resetwal/t/001_basic.pl  (Svetlana Derevyanko <s.derevyanko@postgrespro.ru>)
Список pgsql-hackers
On Tue, Mar 26, 2024 at 02:53:35PM +0300, Svetlana Derevyanko wrote:
> What do you think?
>
> +use constant SLRU_PAGES_PER_SEGMENT => 32;

Well, I disagree with what you are doing here, adding a hardcoded
dependency between the test code and the backend code.  I would
suggest to use a more dynamic approach and retrieve such values
directly from the headers.  See scan_server_header() in
039_end_of_wal.pl as one example.  7b5275eec3a5 is newer than
bae868caf222, so the original commit could have used that, as well.
--
Michael

Вложения

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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Parent/child context relation in pg_get_backend_memory_contexts()
Следующее
От: David Rowley
Дата:
Сообщение: Re: PostgreSQL 17 Release Management Team & Feature Freeze