Postgres passes.

Now it's a matter of applying the same logic to the rest of
the integrations.