Обсуждение: pgsql: Refactor log check logic for connect_ok/fails in PostgreSQL::Tes

Поиск
Список
Период
Сортировка

pgsql: Refactor log check logic for connect_ok/fails in PostgreSQL::Tes

От
Michael Paquier
Дата:
Refactor log check logic for connect_ok/fails in PostgreSQL::Test::Cluster

This commit refactors a bit the code in charge of checking for log
patterns when connections fail or succeed, by moving the log pattern
checks into their own routine, for clarity.  This has come up as
something to improve while discussing the refactoring of find_in_log().

Backpatch down to 14 where these routines are used, to ease the
introduction of new tests that could rely on them.

Author: Vignesh C, Michael Paquier
Discussion: https://postgr.es/m/CALDaNm0YSiLpjCmajwLfidQrFOrLNKPQir7s__PeVvh9U3uoTQ@mail.gmail.com
Backpatch-through: 14

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/7fa7911c7675a4a9d5b36c50cb486b0fd6ca3bfb

Modified Files
--------------
src/test/perl/PostgreSQL/Test/Cluster.pm | 122 +++++++++++++++++--------------
1 file changed, 66 insertions(+), 56 deletions(-)