Don't ask for bug reports about pthread_is_threaded_np() != 0.
authorTom Lane <[email protected]>
Thu, 23 Jan 2025 19:23:04 +0000 (14:23 -0500)
committerTom Lane <[email protected]>
Thu, 23 Jan 2025 19:23:39 +0000 (14:23 -0500)
commit63a4b9f767866f4cbe7416c7eff7e35206d871b5
tree6ed43dbce10d2c96ab195c4b49c5b814358771cf
parent30859930528b50e55f1a3ea66b6a9a3704c8df62
Don't ask for bug reports about pthread_is_threaded_np() != 0.

We thought that this condition was unreachable in ExitPostmaster,
but actually it's possible if you have both a misconfigured locale
setting and some other mistake that causes PostmasterMain to bail
out before reaching its own check of pthread_is_threaded_np().

Given the lack of other reports, let's not ask for bug reports if
this occurs; instead just give the same hint as in PostmasterMain.

Bug: #18783
Reported-by: [email protected]
Author: Tom Lane <[email protected]>
Reviewed-by: Noah Misch <[email protected]>
Discussion: https://postgr.es/m/18783-d1873b95a59b9103@postgresql.org
Discussion: https://postgr.es/m/206317.1737656533@sss.pgh.pa.us
Backpatch-through: 13
src/backend/postmaster/postmaster.c