Avoid unnecessary server restarts in the Kerberos TAP test

From: Ayush Tiwari <ayushtiwari(dot)slg01(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Avoid unnecessary server restarts in the Kerberos TAP test
Date: 2026-08-03 04:29:38
Message-ID: CAJTYsWWGXJRhefkYs6wZFUOHqE9k5VSoABH2uzke5FMBSmE0=w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While reading src/test/kerberos/t/001_auth.pl I noticed it restarts the
server after every configuration change, even though none of them needs a
restart. gss_accept_delegation is a PGC_SIGHUP parameter, and pg_hba.conf
and pg_ident.conf are re-read on SIGHUP, so a reload is sufficient in every
case. The rest of the authentication suite already relies on this, via the
reset_pg_hba() helper that reloads rather than restarts.

The attached patch replaces the seven restarts with reloads. The test
still passes here (142 tests) and is a little quicker, since it no longer
bounces the postmaster seven times.

Regards,
Ayush

Attachment Content-Type Size
v1-0001-Avoid-unnecessary-server-restarts-in-the-Kerberos.patch application/octet-stream 2.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2026-08-03 04:51:17 Re: Avoid unnecessary server restarts in the Kerberos TAP test
Previous Message Bertrand Drouvot 2026-08-03 04:19:11 Re: pgstat: Flush some statistics within running transactions, take 2