Re: stopgap fix for signal handling during restore_command
От
Thomas Munro
Тема
Re: stopgap fix for signal handling during restore_command
Дата
Msg-id
CA+hUKG+d+u2BZu=N4q15EbR7s52KugSQeQ8eUXE8iuEBe108ng@mail.gmail.com
Ответ на
stopgap fix for signal handling during restore_command (Nathan Bossart)
Список
Дерево обсуждения
stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Thomas Munro <thomas.munro@gmail.com>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Andres Freund <andres@anarazel.de>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Andres Freund <andres@anarazel.de>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Andres Freund <andres@anarazel.de>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Andres Freund <andres@anarazel.de>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Andres Freund <andres@anarazel.de>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Peter Eisentraut <peter@eisentraut.org>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Andres Freund <andres@anarazel.de>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Andres Freund <andres@anarazel.de>
Re: stopgap fix for signal handling during restore_command Michael Paquier <michael@paquier.xyz>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Tom Lane <tgl@sss.pgh.pa.us>
Re: stopgap fix for signal handling during restore_command Nathan Bossart <nathandbossart@gmail.com>
Re: stopgap fix for signal handling during restore_command Thomas Munro <thomas.munro@gmail.com>
On Fri, Feb 24, 2023 at 12:15 PM Nathan Bossart
wrote:
> Thoughts?
I think you should have a trailing \n when writing to stderr.
Here's that reproducer I speculated about (sorry I confused SIGQUIT
and SIGTERM in my earlier email, ENOCOFFEE). Seems to do the job, and
I tested on a Linux box for good measure. If you comment out the
kill(), "check PROVE_TESTS=t/002_archiving.pl" works fine
(demonstrating that that definition of system() works fine). With the
kill(), it reliably reaches 'TRAP: failed Assert("latch->owner_pid ==
MyProcPid")' without your patch, and with your patch it avoids it. (I
believe glibc's system() could reach it too with the right timing, but
I didn't try, my point being that the use of the OpenBSD system() here
is only because it's easier to grok and to wrangle.)
В списке pgsql-hackers по дате отправления
От: Justin Pryzby
Дата:
От: Thomas Munro
Дата: