Re: DSA_ALLOC_NO_OOM vs dsm_create ERROR leaving a half-initialized pgstats hash entry - Mailing list pgsql-hackers

From Grigorev Jurij
Subject Re: DSA_ALLOC_NO_OOM vs dsm_create ERROR leaving a half-initialized pgstats hash entry
Date
Msg-id 0eb7233253374bce9f8ec0111a40b732@localhost.localdomain
Whole thread
In response to Re: DSA_ALLOC_NO_OOM vs dsm_create ERROR leaving a half-initialized pgstats hash entry  (Michael Paquier <michael@paquier.xyz>)
Responses Re: DSA_ALLOC_NO_OOM vs dsm_create ERROR leaving a half-initialized pgstats hash entry
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Nisha Moond
Date:
Subject: Re: Distinguish publication exclusions in object addresses
Next
From: Antonin Houska
Date:
Subject: Re: Race conditions in logical decoding