[#560] Compare with bool with is instead of ==
[#560] Test pg version comparison