Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xNm9V-00000002jv1-0Vbi for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Nov 2026 07:08:21 +0000 Received: from localhost ([127.0.0.1]:45236 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xNm9U-00000001sYf-0W5m for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Nov 2026 07:08:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]:47320) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xNm9T-00000001sYX-30a3 for pgsql-hackers@lists.postgresql.org; Mon, 02 Nov 2026 07:08:19 +0000 Received: from fhigh-a4-smtp.messagingengine.com ([103.168.172.155]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xNm9S-000000027gF-0aDz for pgsql-hackers@postgresql.org; Mon, 02 Nov 2026 07:08:18 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.phl.internal (Postfix) with ESMTP id 674461400106 for ; Mon, 2 Nov 2026 02:08:17 -0500 (EST) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Mon, 02 Nov 2026 02:08:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1793603297; x=1793689697; bh=ix6tARFZaT st0sb28xCSDAph3Eeiscxx5mcBJKcjdYQ=; b=Vhw4qjuIQA4mMw2hy7vTO2LP8f 0OJGL32wVGNocbJqjygMzlQtPW4mIGg+JgWnh2qJk+Y8XI+6nDKdJpzi3pdmqf/D 0dfy5hhvM6nZ05UayFxyf/3Reehf/xMG5SCDvtXt5l+RxbxfcXGFh/lqXtw/K5AY uHLF1vveZtG9iNNK8dmSl31lC+w1MOMTJArR/4YLBONHSk4luRR1O8hcJPqV90/o XIvA9aubmqPvXQC1Z5rQCbgeZHYp4D+h+usbqHEDrgmg4MFez7a+YQ13AJgnk+dD eaa321IOLM7zPpO49EVFrlOHidzmI5Zt8Qk6WwvtEQzW2vGbpUSrXOIYGV5w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1793603297; x=1793689697; bh=ix6tARFZaTst0sb28xCSDAph3Eeiscxx5mc BJKcjdYQ=; b=qxWVnTwOorepezazna4L6p0TrEfcK5KWjvHLzlrtLQwcsh1v2pJ B9yRp+NdlhvPqUUB0wkwH3mXEwszYeiNwuyGeUHj4UnvoDs2ApvuQh821ptYUwOd vyFfn/a41ifChM5UKxmp+Xy7NLr3pJJ7xCJkIlEYR7sWwkr7bmVcRTqy/wtEcUi7 I0VNOu9yMqOuSlGwy1V/TL654Oy+PxHXNbew5e0gc0ffHwpdvailKSfgzCZV/lX7 F8QOlqvxQ2b5nxi4BZU9OUY+mIhFJyuC/ayklLukHe1zfUAyJ3c2bqABM9DspkZS 8SqIrzP5vgj7EyLYKQ7gSc5bpTeLf5o4T7g== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-08; repo=github.com/dkim2wg/interop; date=2026-10-28; sw=lmtpprox; action=sign d=paquier.xyz a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1793603297; d=paquier.xyz; mf=PG1pY2hhZWxAcGFxdWllci54eXo+; rt=PHBnc3FsLWhhY2tlcnNAcG9zdGdyZXNxbC5vcmc+; s=fm2:rsa-sha256:bSq3dRNXohTyd8LvMrIoup1cj8ZHjUsPt0jSoj9InDeFUI3 oJ0kVd7tlTxWEK0CgovHoukYsR1JuLI0oFBihZEFsAPPDaG0ZZJjlZaNXGeBC7pl J3CcZ8KaxV7p61WcgoytOBi3qyF0mLtIm5yXeEv4Tich7wOeksDFdlXAowjdQaRc ETMCswzHqKj93iUvEdzq78gD13oPLBLt7uGKuanptn9LTnFHVRWIYNd5/knvko/u hZdG50sULK1a7zNHXg8mAhtc3jEkK9ME7b3iSEHtXys0w04IwfMCX7lmpuA7+h9V ngyX7YBNHTPRrde0a5xP01F/klChnHFeXxPhogQ==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-08; repo=github.com/dkim2wg/interop; date=2026-10-28; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-disposition,content-type,date,feedback-id,from, in-reply-to,message-id,mime-version,references,subject,to; Message-Instance: m=1; h=sha256:2UqqUEZNp8ofirMxTP3lyXrLHO7lyjroaC6RvkIM6SI=:pZKiKcIGfTAud3+tryOh87JL2SmoeTF3WD4EbgL7x24=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEeRnwOjFFMsP6cBnaHpz+5hc+hX0rWWX4YlYfnzkbmHjohXOiu1nCKvcrUFwELru G5CKq+/JhvEMtKg7hncjjFrECiSLXdNylrLmqn2Sw72u7TbmE6JyvemCep8HeA4SOhQixU ln/QAiUUE8uL5fIlRZVyCgIS99P6kK/YyUaUR0jyHHPhQizOspf4a/fBijIbIdaQZX0yQl EFe5vhmd/JyuQuRKY//kbHabyMyTJ5HmRZiZlJJ3lP6N9S+BZMwLtl6Oug6q2X6ZETyiwp 6DLxUAftdrHdFGo7xR8ATB9vFa0I5EmCPehZCVh5ZSBX1ZZ19ixtU/5KnmuAMTU8LpaaZQ +DgDyh1z0W2AOsBIm3b9eciUTd1oOxCFcJtKnywRg62PVgTzA7Wj1IV0VjKizjuFoJ4D81 L6JiOFXqqAtioKHbUuKStAAp9/47YODhy7K91juzXn8B6+33iih9bqDx3quXolXsX++9Nr k1NtYjnFbaC7BThR/RQDJAVaya6ZCcwYdhBjdgXdr/QNJoopazFRQ9VA+dfmxkuAT/Lhxr 5wZHAgL8JCxxivN576+Dxz4UEhHUO4xJiZd3yDtepxglnUubaB1AgothshVLFeWFpWRriq JOpJNZ7mXM+QcySYEYX3VOXyzBfkdL8Gqb+wDxd2l7DHPlfUIKx0nzZM8Trg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 Nov 2026 02:08:16 -0500 (EST) Date: Mon, 2 Nov 2026 16:08:13 +0900 From: Michael Paquier To: Alexander Lakhin Cc: pgsql-hackers Subject: Re: 007_pre_auth.pl fails if injection_points_wakeup hits unintended process Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="8P/P16MXpDPQFsDK" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --8P/P16MXpDPQFsDK Content-Type: multipart/mixed; boundary="4jeGBgGV3H1pYO3c" Content-Disposition: inline --4jeGBgGV3H1pYO3c Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Nov 01, 2026 at 03:00:00PM +0200, Alexander Lakhin wrote: > That is, the wakeup can hit autovacuum worker or logical replication > launcher, not the intended client backend. This test failure can be easily > reproduced with: > @@ -753,2 +753,3 @@ InitPostgres(const char *in_dbname, Oid dboid, > =A0=A0=A0=A0=A0=A0=A0=A0 pgstat_bestart_initial(); > +if (AmRegularBackendProcess()) pg_usleep(1000000); > =A0=A0=A0=A0=A0=A0=A0=A0 INJECTION_POINT("init-pre-auth", NULL); >=20 > and > echo "autovacuum_naptime =3D 1s" >/tmp/temp.config > TEMP_CONFIG=3D/tmp/temp.config PROVE_TESTS=3D"t/007*" make -s check -C sr= c/test/authentication >=20 > Reproduced starting from e2080261c. Thanks for the report. I am planning to tackle this one with the following tweak to the test's conf: autovacuum =3D off max_logical_replication_workers =3D 0 Does that work for you? -- Michael --4jeGBgGV3H1pYO3c Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=preauth-test.patch Content-Transfer-Encoding: quoted-printable diff --git a/src/test/authentication/t/007_pre_auth.pl b/src/test/authentic= ation/t/007_pre_auth.pl index 04063f4721d9..9c2e3341d768 100644 --- a/src/test/authentication/t/007_pre_auth.pl +++ b/src/test/authentication/t/007_pre_auth.pl @@ -18,9 +18,14 @@ if ($ENV{enable_injection_points} ne 'yes') =20 my $node =3D PostgreSQL::Test::Cluster->new('primary'); $node->init; + +# Disable autovacuum and logical replication workers; these could reach +# the injection point wait. $node->append_conf( 'postgresql.conf', q[ log_connections =3D 'receipt,authentication' +autovacuum =3D off +max_logical_replication_workers =3D 0 ]); =20 $node->start; --4jeGBgGV3H1pYO3c-- --8P/P16MXpDPQFsDK Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmroNt0ACgkQnvQgOdby QH13MA//T9SZxoR2p4iUokoHLJHV7LiYSihPQ//GRZ3Yu+LQ9cTMrcz+fHvU3La3 uR5zFp8jo9BkCF7bLISk5Qwwzwn7q0+bdpU36XGxzIbTDoS4Sj11oUz7uVi5gXFc 4U4pKKof3hzcP7t2s9gLwF74/PT7w6BcyiNGSpZFPsHEo51cRAO2ZmLXCRvfhnVI 36yupMVlXCHJ5kP7jA9VT/sY4Joj7HT/Oz9LAzjYA8GEghn3rOgb7kLC6j06j99u eNxxrLfiFMJZgtr5jxiwneK5KSt8HY8tqHNMuZYj10N8OwyAPXK66gFSREpTlBKp APpNiG2BQbow6Nt+fC2prpDMBVoukI41q+N4+iEXrm2hXdqcIMhXUCg+EgprrMPU JAvoST7D2bnTwZ8WJccnWSusyah/mFpshhJReKw3vEnQxs7jUmgTc8ZTJt5ENooO uIZ7K8ZWe+wsdP3lWSzALhmcY5WHs05ylY8p+aiCKxdQzncBKFkhes935lvM6/3G P1CFi+iwOnAzVsM4ZzvGv/98nr2vyP+9bfXe+q8MuOGGGsxgaZ/4fMdZbrzMZUcy hf0j5mZuM3Hu6Apjs+tcds3eyxWhRqdm3TWowIiXKbjexspvw3FxillOjb8mfbSN vfgMf4nmlJ0AUjUPgBRZ4xspNVgj/l6lJ9QGmm9pj/pemRGR9aU= =b5UK -----END PGP SIGNATURE----- --8P/P16MXpDPQFsDK--