Test: fix 001.loadbalance test failure.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 17 Feb 2023 08:06:20 +0000 (17:06 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 17 Feb 2023 08:06:20 +0000 (17:06 +0900)
commitc94123ab3ab87c78483c134f6fd3fbe6e3df05c4
tree650ed7ee9c8adf3ab14c866397baf304621c6186
parentef40418ee851fa7b5a362c912ddb692102e99fe1
Test: fix 001.loadbalance test failure.

Since this commit:
https://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=f8c3d7b49a1c6496eca2203e95248b86c204bbfa

001.loadbalance test fails on pre PostgreSQL 15, because of the change
in psql.  PostgreSQL 15's psql now prints the whole query results in a
multi-statement query.  Consider following example:

SELECT \BEGIN\;SELECT 1;ROLLBACK;

In 15, the result of SELECT will be printed by psql, while pre-15 will
not.  This causes some test results not to match with expected
results.  To fix this, I added expected7-r-pre15 etc. for pre-15.
test.sh now recognizes "-pre15" suffix. If the server version is
pre-15 and an expected file with suffix "pre-15" exists, the file will
be used.
src/test/regression/tests/001.load_balance/expected/expected7-r-pre15 [new file with mode: 0644]
src/test/regression/tests/001.load_balance/expected/expected7-s-pre15 [new file with mode: 0644]
src/test/regression/tests/001.load_balance/expected/expected8-s-pre15 [new file with mode: 0644]
src/test/regression/tests/001.load_balance/test.sh