Don't clobber postmaster sigmask in dsm_impl_resize.
authorThomas Munro <[email protected]>
Thu, 14 Jul 2022 13:23:29 +0000 (01:23 +1200)
committerThomas Munro <[email protected]>
Thu, 14 Jul 2022 14:08:27 +0000 (02:08 +1200)
commite26024bea9e9fe7bb10a00baea631d629c5bd61c
tree7420c84c40489ef53899b288d6463f2576c59fc3
parent53cfe403c9d254e1a8b84f92ab5579bc59162621
Don't clobber postmaster sigmask in dsm_impl_resize.

Commit 4518c798 intended to block signals in regular backends that
allocate DSM segments, but dsm_impl_resize() is also reached by
dsm_postmaster_startup().  It's not OK to clobber the postmaster's
signal mask, so only manipulate the signal mask when under the
postmaster.

Back-patch to all releases, like 4518c798.

Discussion: https://postgr.es/m/CA%2BhUKGKNpK%3D2OMeea_AZwpLg7Bm4%3DgYWk7eDjZ5F6YbozfOf8w%40mail.gmail.com
src/backend/storage/ipc/dsm_impl.c