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 1x77aZ-000000006iy-1wod for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Sep 2026 08:35:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x77aY-000000031xK-3AEz for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Sep 2026 08:35:26 +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.98.2) (envelope-from ) id 1x77aY-000000031xC-1yeJ for pgsql-hackers@lists.postgresql.org; Thu, 17 Sep 2026 08:35:26 +0000 Received: from email.dnscdc.tech ([194.226.250.15]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x77aU-00000000yHx-36Xw for pgsql-hackers@lists.postgresql.org; Thu, 17 Sep 2026 08:35:26 +0000 Received: with id B6AAF280AA6; Thu, 17 Sep 2026 15:35:21 +0700 (+07) Received: with id 1C407280033; Thu, 17 Sep 2026 15:35:18 +0700 (+07) From: Grigorev Jurij To: Michael Paquier CC: PostgreSQL Hackers Subject: Re: DSA_ALLOC_NO_OOM vs dsm_create ERROR leaving a half-initialized pgstats hash entry Thread-Topic: DSA_ALLOC_NO_OOM vs dsm_create ERROR leaving a half-initialized pgstats hash entry Thread-Index: AQHdP268ccO9PMgx5Ei0J2uuaTqIjLbE5gWAgAEact2AC6lZAIAAD7eAgACbjC3//537gIAAg+33 Date: Thu, 17 Sep 2026 08:35:15 +0000 Message-ID: <0eb7233253374bce9f8ec0111a40b732@localhost.localdomain> References: , In-Reply-To: Accept-Language: ru-RU, en-US Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 206047 [Sep 17 2026] X-KLMS-AntiSpam-Version: 6.1.1.27 X-KLMS-AntiSpam-Envelope-From: ju.grigorev@ftdata.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Auth: dkim=none X-MS-Exchange-Organization-SCL: -1 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, bases: 2026/09/17 07:13:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2026/09/17 07:46:00 #28593680 X-KLMS-AntiVirus-Status: Clean, skipped List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Agreed on all three points! The two changes touch separate parts of pgstat_shmem.c, so the current HEAD patch should apply cleanly on top of the defensive change. I do not expect any conflicts, but I will rebase and resend it if needed. And yeah, regarding the ABI concern, even though pgstat_init_entry() is declared in pgstat_internal.h and I found no external users, changing its signature in stable branches does not seem worth the compatibility risk. I therefore agree that this patch should be limited to HEAD. And agreed, no injection test for this narrow path! Thanks, Yuriy=