pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. 7+ messages / 1 participants [nested] [flat]
* pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. @ 2020-09-10 16:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-09-10 16:06 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Bring the signal handling for startup-packet collection into line with the policy established in commits bedadc732 and 8e19a8264, namely don't risk running atexit callbacks when handling SIGQUIT. Ideally, we'd not do so for SIGTERM or timeout interrupts either, but that change seems a bit too risky for the back branches. For now, just improve the comments in this area to describe the risk. Also relocate where BackendInitialize re-disables these interrupts, to minimize the code span where they're active. This doesn't buy a whole lot of safety, but it can't hurt. In passing, rename startup_die() to remove confusion about whether it is for the startup process. Like the previous commits, back-patch to all supported branches. Discussion: https://postgr.es/m/1850884.1599601164@sss.pgh.pa.us Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/58c6feccfae1321ea4ff16c535c6f3fb90a07d69 Modified Files -------------- src/backend/postmaster/postmaster.c | 83 +++++++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 32 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. @ 2020-09-10 16:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-09-10 16:06 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Bring the signal handling for startup-packet collection into line with the policy established in commits bedadc732 and 8e19a8264, namely don't risk running atexit callbacks when handling SIGQUIT. Ideally, we'd not do so for SIGTERM or timeout interrupts either, but that change seems a bit too risky for the back branches. For now, just improve the comments in this area to describe the risk. Also relocate where BackendInitialize re-disables these interrupts, to minimize the code span where they're active. This doesn't buy a whole lot of safety, but it can't hurt. In passing, rename startup_die() to remove confusion about whether it is for the startup process. Like the previous commits, back-patch to all supported branches. Discussion: https://postgr.es/m/1850884.1599601164@sss.pgh.pa.us Branch ------ REL_13_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3f29aa48b6df318e43d0efe5735f61175ef38574 Modified Files -------------- src/backend/postmaster/postmaster.c | 83 +++++++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 32 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. @ 2020-09-10 16:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-09-10 16:06 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Bring the signal handling for startup-packet collection into line with the policy established in commits bedadc732 and 8e19a8264, namely don't risk running atexit callbacks when handling SIGQUIT. Ideally, we'd not do so for SIGTERM or timeout interrupts either, but that change seems a bit too risky for the back branches. For now, just improve the comments in this area to describe the risk. Also relocate where BackendInitialize re-disables these interrupts, to minimize the code span where they're active. This doesn't buy a whole lot of safety, but it can't hurt. In passing, rename startup_die() to remove confusion about whether it is for the startup process. Like the previous commits, back-patch to all supported branches. Discussion: https://postgr.es/m/1850884.1599601164@sss.pgh.pa.us Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/4e10c0c8a6690d9b950a0ab1633de6c02d1a1069 Modified Files -------------- src/backend/postmaster/postmaster.c | 104 +++++++++++++++++++++++++----------- 1 file changed, 73 insertions(+), 31 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. @ 2020-09-10 16:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-09-10 16:06 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Bring the signal handling for startup-packet collection into line with the policy established in commits bedadc732 and 8e19a8264, namely don't risk running atexit callbacks when handling SIGQUIT. Ideally, we'd not do so for SIGTERM or timeout interrupts either, but that change seems a bit too risky for the back branches. For now, just improve the comments in this area to describe the risk. Also relocate where BackendInitialize re-disables these interrupts, to minimize the code span where they're active. This doesn't buy a whole lot of safety, but it can't hurt. In passing, rename startup_die() to remove confusion about whether it is for the startup process. Like the previous commits, back-patch to all supported branches. Discussion: https://postgr.es/m/1850884.1599601164@sss.pgh.pa.us Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/93871b693c3eef4eed8a089e6f8b2a45227398b0 Modified Files -------------- src/backend/postmaster/postmaster.c | 106 +++++++++++++++++++++++++----------- 1 file changed, 74 insertions(+), 32 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. @ 2020-09-10 16:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-09-10 16:06 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Bring the signal handling for startup-packet collection into line with the policy established in commits bedadc732 and 8e19a8264, namely don't risk running atexit callbacks when handling SIGQUIT. Ideally, we'd not do so for SIGTERM or timeout interrupts either, but that change seems a bit too risky for the back branches. For now, just improve the comments in this area to describe the risk. Also relocate where BackendInitialize re-disables these interrupts, to minimize the code span where they're active. This doesn't buy a whole lot of safety, but it can't hurt. In passing, rename startup_die() to remove confusion about whether it is for the startup process. Like the previous commits, back-patch to all supported branches. Discussion: https://postgr.es/m/1850884.1599601164@sss.pgh.pa.us Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ac695b8f2d11604d83a1d0cd45b524314eb58b97 Modified Files -------------- src/backend/postmaster/postmaster.c | 104 +++++++++++++++++++++++++----------- 1 file changed, 73 insertions(+), 31 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. @ 2020-09-10 16:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-09-10 16:06 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Bring the signal handling for startup-packet collection into line with the policy established in commits bedadc732 and 8e19a8264, namely don't risk running atexit callbacks when handling SIGQUIT. Ideally, we'd not do so for SIGTERM or timeout interrupts either, but that change seems a bit too risky for the back branches. For now, just improve the comments in this area to describe the risk. Also relocate where BackendInitialize re-disables these interrupts, to minimize the code span where they're active. This doesn't buy a whole lot of safety, but it can't hurt. In passing, rename startup_die() to remove confusion about whether it is for the startup process. Like the previous commits, back-patch to all supported branches. Discussion: https://postgr.es/m/1850884.1599601164@sss.pgh.pa.us Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/dc71c640985fd07b2e2ff3df7e57752a44e828ed Modified Files -------------- src/backend/postmaster/postmaster.c | 104 +++++++++++++++++++++++++----------- 1 file changed, 73 insertions(+), 31 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. @ 2020-09-10 16:06 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2020-09-10 16:06 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Bring the signal handling for startup-packet collection into line with the policy established in commits bedadc732 and 8e19a8264, namely don't risk running atexit callbacks when handling SIGQUIT. Ideally, we'd not do so for SIGTERM or timeout interrupts either, but that change seems a bit too risky for the back branches. For now, just improve the comments in this area to describe the risk. Also relocate where BackendInitialize re-disables these interrupts, to minimize the code span where they're active. This doesn't buy a whole lot of safety, but it can't hurt. In passing, rename startup_die() to remove confusion about whether it is for the startup process. Like the previous commits, back-patch to all supported branches. Discussion: https://postgr.es/m/1850884.1599601164@sss.pgh.pa.us Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/e2c9bedc96600c181022de0b38e724d2be922e07 Modified Files -------------- src/backend/postmaster/postmaster.c | 104 +++++++++++++++++++++++++----------- 1 file changed, 73 insertions(+), 31 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2020-09-10 16:06 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2020-09-10 16:06 pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Tom Lane <tgl@sss.pgh.pa.us> 2020-09-10 16:06 pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Tom Lane <tgl@sss.pgh.pa.us> 2020-09-10 16:06 pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Tom Lane <tgl@sss.pgh.pa.us> 2020-09-10 16:06 pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Tom Lane <tgl@sss.pgh.pa.us> 2020-09-10 16:06 pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Tom Lane <tgl@sss.pgh.pa.us> 2020-09-10 16:06 pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Tom Lane <tgl@sss.pgh.pa.us> 2020-09-10 16:06 pgsql: Use _exit(2) for SIGQUIT during ProcessStartupPacket, too. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox