Fixes Bug 904238 - tests for postgresql/util.py