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

2025-09-05 Thread Mikhail Kot
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?

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

2025-09-04 Thread Mikhail Kot
Hi Michael, Steven, and Ranier, > Anyway, couldn't we flip the order of the operations in pgstat_init_entry() so as we do first an allocation and avoid any inconsistency in the shared state? The issue is not only in pgstat_init_entry(). Currently it errors on OOM but this doesn't prevent us from

Fix segfault while accessing half-initialized hash table in pgstat_shmem.c

2025-09-03 Thread Mikhail Kot
Hi, I've encountered the following segmentation fault lately. It happens when Postgres is experiencing high memory pressure. There are multiple OOM errors in the log as well. Core was generated by `postgres: neondb_owner neondb ::1(46658) BIND '. Program terminated with signal SIGSEGV,