fix failing postgres tests