pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add TAP tests for timeouts
Date: Thu, 14 Mar 2024 11:25:42 +0000
Message-ID: <E1rkjDR-003kjB-St@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/eeefd4280f6e5167d70efabb89586b7d38922d95

Modified Files
--------------
src/backend/tcop/postgres.c                  |  10 +++
src/test/modules/test_misc/Makefile          |   4 +
src/test/modules/test_misc/meson.build       |   4 +
src/test/modules/test_misc/t/005_timeouts.pl | 129 +++++++++++++++++++++++++++
4 files changed, 147 insertions(+)



view thread (17+ messages)  latest in thread

Message-ID: <E1rkjDR-003kjB-St@gemulon.postgresql.org>
Permalink:  ../E1rkjDR-003kjB-St@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rkjDR-003kjB-St@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add TAP tests for timeouts
  In-Reply-To: <E1rkjDR-003kjB-St@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox