Re: 回复: Fix segfault while accessing half-initialized hash table in pgstat_shmem.c

Mikhail Kot <mikhail.kot@databricks.com>

From: Mikhail Kot <mikhail.kot@databricks.com>
To: "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>, Rider <oceanustz@gmail.com>
Cc: Steven Niu <niushiji@gmail.com>, Michael Paquier <michael@paquier.xyz>
Date: 2025-09-05T20:46:55Z
Lists: pgsql-hackers
Hi,

Do you want me to update the patch based on your suggestion on fault
injection, or update the try/catch to the callers as discussed, or
it's good to be included in Postgres?



Commits

  1. Fix corruption of pgstats shared hashtable due to OOM failures