Re: prevent immature WAL streaming

Поиск
Список
Период
Сортировка
От Dagfinn Ilmari Mannsåker
Тема Re: prevent immature WAL streaming
Дата
Msg-id 8735o4qgrp.fsf@wibble.ilmari.org
обсуждение исходный текст
Ответ на Re: prevent immature WAL streaming  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Also, I think we want
>
> -ok($initfile != $endfile, "$initfile differs from $endfile");
> +ok($initfile ne $endfile, "$initfile differs from $endfile");
>
> The existing coding works as long as all characters of these
> WAL segment names happen to be decimal digits, but ...

Even better style (IMO) would be:

  isnt($initfile, $endfile, "WAL file name has changed");

Or some other more descriptive message of _why_ it should have changed.

- ilmari



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

Предыдущее
От: Daniel Gustafsson
Дата:
Сообщение: Re: Removed unused import modules from tap tests
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Add jsonlog log_destination for JSON server logs