fix postgresql boolean column type detection, add test coverage