Revert "More PG-specific stuff."

This reverts commit eb4ae7dfa6834f9c973f80befa5fa0152890c3bf.
Revert "Postgres change."

This reverts commit e5fe32cfe908f0ba771db2d2f376eef5ac3ad841.