cleanup, switch arguments in assert_equal calls
cleanup, assert on warning from postgres adapter
Merge pull request #10495 from senny/postgres_test_cleanup

PostgreSQL specific test cleanup