Complete PostgreSQL adapter.

[#60019012]