]> granicus.if.org Git - postgresql/commit
Eschew "RESET statement_timeout" in tests.
authorNoah Misch <noah@leadboat.com>
Tue, 20 Oct 2015 04:37:22 +0000 (00:37 -0400)
committerNoah Misch <noah@leadboat.com>
Tue, 20 Oct 2015 04:37:29 +0000 (00:37 -0400)
commit01a96c77d638aad0d9d5b040ed62248481d3b5a0
treec7c430367751026339bef8f1a68b703f13b88cd0
parent43e36f8dd065ee2d73d0b010488e624b7e509c3f
Eschew "RESET statement_timeout" in tests.

Instead, use transaction abort.  Given an unlucky bout of latency, the
timeout would cancel the RESET itself.  Buildfarm members gharial,
lapwing, mereswine, shearwater, and sungazer witness that.  Back-patch
to 9.1 (all supported versions).  The query_canceled test still could
timeout before entering its subtransaction; for whatever reason, that
has yet to happen on the buildfarm.
src/test/regress/expected/plpgsql.out
src/test/regress/expected/prepared_xacts.out
src/test/regress/expected/prepared_xacts_1.out
src/test/regress/sql/plpgsql.sql
src/test/regress/sql/prepared_xacts.sql