Add TAP tests for timeouts
Alexander Korotkov <akorotkov@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tcop/postgres.c | modified | +10 −0 |
| src/test/modules/test_misc/Makefile | modified | +4 −0 |
| src/test/modules/test_misc/meson.build | modified | +4 −0 |
| src/test/modules/test_misc/t/005_timeouts.pl | added | +129 −0 |
Discussion
- Transaction timeout 95 messages · 2022-12-03 → 2024-03-13