First-pass unit test coverage for the Postgres execution module.
Merge pull request #9007 from cachedout/postgres-unit-tests

First-pass unit test coverage for the Postgres execution module.