pgsql: Use per-query timeout in subscription test

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use per-query timeout in subscription test
Date: 2026-08-12 07:43:45
Message-ID: E1wu3cm-00000000EO9-252s@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Use per-query timeout in subscription test

A buildfarm failure in subscription/038_walsnd_shutdown_timeout was
diagnosed to the background psql session timing out due to a backup
taking a long time. The session was using a single timeout for all
queries, so switch to resetting the timer for each query to make it
survive slow backups due to constrained buildfarm machines.

Backpatch to v19 where the test was introduced.

Author: Hayato Kuroda <kuroda(dot)hayato(at)fujitsu(dot)com>
Discussion: https://postgr.es/m/OS9PR01MB12149AA18EEA475D2AA22FD3BF5D12@OS9PR01MB12149.jpnprd01.prod.outlook.com
Backpatch-through: 19

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2eb9a8e84a53cd1a202a757d704139930bc19a96

Modified Files
--------------
src/test/subscription/t/038_walsnd_shutdown_timeout.pl | 1 +
1 file changed, 1 insertion(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2026-08-12 07:43:51 pgsql: Use per-query timeout in subscription test
Previous Message Michael Paquier 2026-08-12 07:23:54 pgsql: Fix poll_query_until() timeout handling with an undefined query