Make sure assertion passes for postgresql.

Similar to #L191, otherwise the test will sometimes fail in postgresql because `SHOW max_identifier_length` query is executed.

cc @senny
for `assert_no_queries`, it is actually default to `true`.

https://github.com/rails/rails/blob/master/activerecord/test/cases/test_case.rb#L64