Revert "Merge pull request #637 from jzelenkov/fix-postgres-oid"

This reverts commit 1098046ffd428911f58d18670660485eb78cdebe, reversing
changes made to 8c06687495f0e8490feb4eb12bad6188c0cdd345.