make tests pass on pg@8.4.9