Remove Postgres optimizations

Trying to debug some segfaults in tests