[pgpool-committers: 7720] pgpool: Fix 018.detach_primary test.

Tatsuo Ishii ishii at sraoss.co.jp
Sat May 15 07:36:40 JST 2021


Fix 018.detach_primary test.

The script tried to extract primary node id from the results of show
pool_nodes.  From 4.3 it includes the actual backend status. As a
result the script could accidentally picks up a node id which is
actually a standby (but has primary status as PostgreSQL) from
Pgpool-II's point of view.

This resulted in a shell syntax error here because $primary_node could
have node "0 2" for example.

if [ $primary_node != 0 ];then

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=81684bb226ca5add2ce5e0ed080dcbbcc541e608

Modified Files
--------------
src/test/regression/tests/018.detach_primary/test.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)



More information about the pgpool-committers mailing list