postgres.git / summary / log / commit / refs

commit    79b9722a49c93fbb808ecd51870440139cf1e650
Author:   Daniel Gustafsson <dgustafsson@postgresql.org>
Date:     Thu Nov 12 13:28:47 2026 +0000
First released in: 19.0

    oauth: Apply bgconn timeout per query in 001_server
    
    The background psql session in oauth_validator/001_server lives
    for most of the test but its timer was never restarted.  On slow
    or loaded buildfarm animals the tests can exceed timeout_default
    and the next query fails with "IPC::Run: timeout on timer #1".
    Fix by restarting the timer per query.  Backpatch to v18 where
    the test was introduced.
    
    Author: Zsolt Parragi <zsolt.parragi@percona.com>
    Reported-by: Alexander Lakhin <exclusion@gmail.com>
    Discussion: https://postgr.es/m/078be990-1420-4ab5-997f-82e7afb86f7c@gmail.com
    Backpatch-through: 18


src/test/modules/oauth_validator/t/001_server.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/modules/oauth_validator/t/001_server.pl b/src/test/modules/oauth_validator/t/001_server.pl index 5308550d06c..69c58cec706 100644 --- a/src/test/modules/oauth_validator/t/001_server.pl +++ b/src/test/modules/oauth_validator/t/001_server.pl @@ -60,6 +60,7 @@ my $exec_backend = $node->safe_psql('postgres', 'SHOW debug_exec_backend'); # Save a background connection for later configuration changes. my $bgconn = $node->background_psql('postgres'); +$bgconn->set_query_timer_restart(); my $webserver = OAuth::Server->new(); $webserver->run(); [parent: 1d83c23f2912]