Add TAP tests for timeouts
authorAlexander Korotkov <[email protected]>
Thu, 14 Mar 2024 11:10:21 +0000 (13:10 +0200)
committerAlexander Korotkov <[email protected]>
Thu, 14 Mar 2024 11:12:15 +0000 (13:12 +0200)
commiteeefd4280f6e5167d70efabb89586b7d38922d95
tree25f6bdce86953c94e52b90cc367d15896c966483
parente85662df44ff47acdf5d2d413339445d60a9c30c
Add TAP tests for timeouts

This commit adds new tests to verify that transaction_timeout,
idle_session_timeout, and idle_in_transaction_session_timeout work as expected.
We introduce new injection points in before throwing a timeout FATAL error
and check these injection points are reached.

Discussion: https://postgr.es/m/CAAhFRxiQsRs2Eq5kCo9nXE3HTugsAAJdSQSmxncivebAxdmBjQ%40mail.gmail.com
Author: Andrey Borodin
Reviewed-by: Alexander Korotkov
src/backend/tcop/postgres.c
src/test/modules/test_misc/Makefile
src/test/modules/test_misc/meson.build
src/test/modules/test_misc/t/005_timeouts.pl [new file with mode: 0644]