aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/arrayfuncs.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-07-16 10:59:52 +1200
committerThomas Munro <tmunro@postgresql.org>2022-07-16 12:22:42 +1200
commit3b8d23a3e14f05890f1f306902cd4b992beeee71 (patch)
tree6575f8bfc4d23055e240116832903956a0f756ef /src/backend/utils/adt/arrayfuncs.c
parent3a0e385048adf84d212e010d82db16228e5f4060 (diff)
downloadpostgresql-3b8d23a3e14f05890f1f306902cd4b992beeee71.tar.gz
postgresql-3b8d23a3e14f05890f1f306902cd4b992beeee71.zip
Make dsm_impl_posix_resize more future-proof.
Commit 4518c798 blocks signals for a short region of code, but it assumed that whatever called it had the signal mask set to UnBlockSig on entry. That may be true today (or may even not be, in extensions in the wild), but it would be better not to make that assumption. We should save-and-restore the caller's signal mask. The PG_SETMASK() portability macro couldn't be used for that, which is why it wasn't done before. But... considering that commit a65e0864 established back in 9.6 that supported POSIX systems have sigprocmask(), and that this is POSIX-only code, there is no reason not to use standard sigprocmask() directly to achieve that. Back-patch to all supported releases, like 4518c798 and 80845b7c. Reviewed-by: Alvaro Herrera <alvherre@alvh.no-ip.org> Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/CA%2BhUKGKx6Biq7_UuV0kn9DW%2B8QWcpJC1qwhizdtD9tN-fn0H0g%40mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions