pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Grigorev Jurij <ju.grigorev@ftdata.ru>
To: Michael Paquier <michael@paquier.xyz>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: DSA_ALLOC_NO_OOM vs dsm_create ERROR leaving a half-initialized pgstats hash entry
Date: Thu, 17 Sep 2026 08:35:15 +0000
Message-ID: <0eb7233253374bce9f8ec0111a40b732@localhost.localdomain> (raw)
In-Reply-To: <aquSa2gbfVMxDYmT@paquier.xyz>
References: <ddc3ecfb01ce4e9698b23cc59767f016@localhost.localdomain>
	<aqCfwe5-EIiJXlIu@paquier.xyz>
	<a72c99d5b1e448b191a89e30ecaf3e8a@localhost.localdomain>
	<aqtU-qs5H3LbUum1@paquier.xyz>
	<aqtiKTvl519bu8-V@paquier.xyz>
	<d6ed296c81c14d03b1b5e283e913c40b@localhost.localdomain>
	<aquSa2gbfVMxDYmT@paquier.xyz>

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





view thread (10+ messages)  latest in thread

Message-ID: <0eb7233253374bce9f8ec0111a40b732@localhost.localdomain>
Permalink:  ../0eb7233253374bce9f8ec0111a40b732@localhost.localdomain/
Also on:    postgresql.org/message-id/0eb7233253374bce9f8ec0111a40b732@localhost.localdomain

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: ju.grigorev@ftdata.ru, michael@paquier.xyz, pgsql-hackers@lists.postgresql.org
  Subject: Re: DSA_ALLOC_NO_OOM vs dsm_create ERROR leaving a half-initialized pgstats hash entry
  In-Reply-To: <0eb7233253374bce9f8ec0111a40b732@localhost.localdomain>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox