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.96) (envelope-from ) id 1waqN3-0026FO-0b for pgsql-bugs@arkaria.postgresql.org; Sat, 20 Jun 2026 07:44:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1waqN2-000rro-0Q for pgsql-bugs@arkaria.postgresql.org; Sat, 20 Jun 2026 07:44:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1waqN1-000rrg-2o for pgsql-bugs@lists.postgresql.org; Sat, 20 Jun 2026 07:44:03 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1waqMy-00000001OXk-3Xnw for pgsql-bugs@lists.postgresql.org; Sat, 20 Jun 2026 07:44:03 +0000 Received: from phl-compute-05.internal (phl-compute-05.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id DE84E1D00052; Sat, 20 Jun 2026 03:43:58 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Sat, 20 Jun 2026 03:43:59 -0400 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=fm1; t=1781941438; x=1782027838; bh=r9frK/r1b3 sw1r13IX2IrKQfyZpHjgn3RG1vYVws23Q=; b=ELo4pxCeq5bkOFP7zsf67YUqCk GCWxDpgfoesYArDG9JxdR/EOg6QxfXDrw2SaupVAtmfJ1f3cDALVR6eJ2sYnH3aD nl1qIxlXm1xtkVo0iWXSQ3w41f8f93X5lZOC8N+MVdwaBHUypLzNyPikylhN+Lz1 X1BbWJN7WBGFwUw0vteC1SirTXLnyClmDvr20d5994V0HSQkcn+OztsPxr4D/5gI +B/SJOiTcpB5pohzqEMf8RPHi90pJHF9cf1Zcdy6BgOy8of4wPNIm7XUhgMieHoU AdY5d/A/RQFnQWNL3D8ajy6WeTVw2WQOpEueY1i2j+y8040hAeb1+1JvXcPg== 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=fm1; t= 1781941438; x=1782027838; bh=r9frK/r1b3sw1r13IX2IrKQfyZpHjgn3RG1 vYVws23Q=; b=ecFXLDpCz2v3vheiZvAFiN+wjtGC0ZQgcBssFxcFtf9KsZFUORC KyOiCFb5SWpwFwvJuBuPPQHr63G1+hC4Px8EeGX+0zOIRKdeVYgaGW1Sarmh+5SH fQqPFjE3IAFhUaGSgrmj+nikI4zaG5CRTNoU2Ov36J2mp6rc9UpawwHEchMqnIng 82ARnBTIHxRtzIxi3AfxRTJyFpiwv+/xL0Y9+w3Z7/YiVXZtGZU85KaJ5lZMTCyt 2N6rldYbQOPKWq+1ho9bq5iCqrrlSpB3ijdc2uRWTKok64F7exCNSnD+RJ9OqbAu s+EL/6qZxcRRf4r9ryIpThQQlpi25xRSdtA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTGTd9ViQ+wzFwNmdZ7ati+R5N8NqVoCRLsuGeJvwy/MalRcmRqk8A2nFSknCZ9knq kBcUTBHf0L3JAOT1WE232umOH7jPBkcYLBxNjWNIAPRw9pq893/Hq2ah2sAFx2iGMCRowF +t5bpFC6I1V/jykp0YXso7NBUKP53h0rDxOmILfHHehFpHdVSWopON+WkFk6ZBMlOrjKm2 BuMwtgxsxJtzveqBofr5lP/im5eqajkYU8+Q2nelSR7rvi3zl7rFaRNp+0B16QTKVesIGN ijMosmCxt9LLWhkWUQ+B9vQnY3IQnPAKsVqvJ4UJMcajYt2ns+LIRHMRYP7ZQCQf0s7od2 Mhu6w6DBpG9SZYWvGbJwC0dkjFzjNqdJUHa3dVTz2SnoeB9G9kcNiI7fr4u3xAxlR6qExl gKCX3bRq/DvDIr1B4YT7z+UIEulCdYC827ABINs65dzWwMtYZhTW3KusnJzDdB9dfHrRAU 7qDoXMzApPFc7ka3qiXzg8oiGTUiM/fMQd6DwsB7PKL9aQ1lBIK3c6OQ4D3LbKR1vC9+TE /X7og4trhQ1Fyp6Oc/oMklE0+Y+lMIjRdqiRttjy+vOnAdPO6jFdae3qJmXacm6dW5kLuW dc3ag/fQ9een6fGE942fYffF7OpyCDGS021n78w2vu5qOuPEP89hskQPCfwA X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 20 Jun 2026 03:43:56 -0400 (EDT) Date: Sat, 20 Jun 2026 16:43:52 +0900 From: Michael Paquier To: Ayush Tiwari Cc: Sami Imseih , zlh21343@163.com, pgsql-bugs@lists.postgresql.org, Andres Freund , Kyotaro Horiguchi Subject: Re: BUG #19520: PANIC when concurrently manipulating stored procedures with pg_stat_statements and track_functions = Message-ID: References: <19520-73873648d44793cf@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PkYuJpe7xzhxFnCR" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --PkYuJpe7xzhxFnCR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 18, 2026 at 02:40:46PM +0900, Michael Paquier wrote: > On Thu, Jun 18, 2026 at 08:52:49AM +0530, Ayush Tiwari wrote: >> The v2 patch looks fine to me. Tested it, no PANICs. >=20 > The buildfarm has backfired with the ABI compliance check, which has > made me double-check for some extension code where the API change > would matter, based on this list: > https://wiki.postgresql.org/wiki/CustomCumulativeStats Another thing I have forgotten to mention regarding 850b9218c8e4.. I have tweaked the patch so as we still show the refcount and the generation in the error message, something that was missed in the latest version of the patch posted on this thread. This information is useful for debugging purposes. -- Michael --PkYuJpe7xzhxFnCR Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmo2RLgACgkQnvQgOdby QH29+w//f6KWBe3OLncvoQlK4ciU/TGYbVSKF9m2w08GZ9Q4690QUwENuYmYNUxG NTyNhesAyrbZOjT3daBNBNuhvdbH3nHUlb8vjL8xWrcyhxKX5G9//DxhTsAJuJFZ 13QKMGz9mQLJFmyWA1YHSoMvy5vnb1m5969HbETo94b8H/1fKCnpopSTQ894t9TM sDTtWSJ+CSAzUWmhGSCxEx1UH8+HJ1iQlsHUwONMI5gaLYgqgkffMKUwt+0bvqKW VZmIAtyLXolKodRg7LQVaDw0YZxb+lhhCuoGwXbkTKjb0FhL74qMiptLtlHQ2wRz as4wATd0rj1v/iwAt0ceWpNzZKDp6QIEqrudYOAmHBJw+SOs/5dZYX6gP76zDVJP KQ5mmcCFb9bmbJPUgSwwuUYe5UU8Exnke5YF4KD29GM6ns4OlF9uYd52YPhlNruJ Z0lS2PXrIUvFcjEvyUdxyItQGKvaaSjjHR5ERlGlmRs2qFzk3ZrYkG/L3TuAm7C+ 4XKpb1UlQKRnF5DW91l+gMBzIQK2nXHurr549pjQ9z3JLnCGwoJ9fh7USVsZ612H +JNgAQ5Jfq31siWapXeoER6RFVx1KD5+OdQpsuj8egBCTT67UEWM4MMNlHlUlud6 PQHqlhWyXyZXZ1mHgA8HYv8bw3iOe5eMDESRdmMtbmFlMAdo6T4= =bnIV -----END PGP SIGNATURE----- --PkYuJpe7xzhxFnCR--