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
v1-0001-Avoid-unnecessary-server-restarts-in-the-Kerberos.patch
Description: Binary data
