check_postgres icon indicating copy to clipboard operation
check_postgres copied to clipboard

fix run_command() to handle passed versions correctly

Open KiriakosGeorgiou opened this issue 7 years ago • 0 comments

check_txn_idle() introduced multiple '>' version ckecks to handle v10 postgres, but run_command() does not correctly implement such multiple '>' or '<' version checks.

run_command() should match the highest '<' or '>' version.

The modified implementation works if and only if the versions are passed in ascending order, which is the way check_txn_idle() currently passes them.

KiriakosGeorgiou avatar Jul 25 '18 23:07 KiriakosGeorgiou