Re: Weird failure with latches in curculio on v15

Поиск
Список
Период
Сортировка
Искать
От
Nathan Bossart
Тема
Re: Weird failure with latches in curculio on v15
Дата
Msg-id
20230201160609.GA3197588@nathanxps13
Ответ на
Список
Дерево обсуждения
Weird failure with latches in curculio on v15 Michael Paquier <michael@paquier.xyz>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Thomas Munro <thomas.munro@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Tom Lane <tgl@sss.pgh.pa.us>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Michael Paquier <michael@paquier.xyz>
Re: Weird failure with latches in curculio on v15 Tom Lane <tgl@sss.pgh.pa.us>
Re: Weird failure with latches in curculio on v15 Michael Paquier <michael@paquier.xyz>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Thomas Munro <thomas.munro@gmail.com>
Re: Weird failure with latches in curculio on v15 Tom Lane <tgl@sss.pgh.pa.us>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Michael Paquier <michael@paquier.xyz>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Michael Paquier <michael@paquier.xyz>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Tom Lane <tgl@sss.pgh.pa.us>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Michael Paquier <michael@paquier.xyz>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Thomas Munro <thomas.munro@gmail.com>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Thomas Munro <thomas.munro@gmail.com>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Stephen Frost <sfrost@snowman.net>
Re: Weird failure with latches in curculio on v15[ Michael Paquier <michael@paquier.xyz>
Re: Weird failure with latches in curculio on v15[ Stephen Frost <sfrost@snowman.net>
Re: Weird failure with latches in curculio on v15 Michael Paquier <michael@paquier.xyz>
Re: Weird failure with latches in curculio on v15 Robert Haas <robertmhaas@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Tom Lane <tgl@sss.pgh.pa.us>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Michael Paquier <michael@paquier.xyz>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Tom Lane <tgl@sss.pgh.pa.us>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Tom Lane <tgl@sss.pgh.pa.us>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Thomas Munro <thomas.munro@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Nathan Bossart <nathandbossart@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
Re: Weird failure with latches in curculio on v15 Michael Paquier <michael@paquier.xyz>
Re: Weird failure with latches in curculio on v15 Thomas Munro <thomas.munro@gmail.com>
Re: Weird failure with latches in curculio on v15 Andres Freund <andres@anarazel.de>
On Wed, Feb 01, 2023 at 10:12:26AM -0500, Tom Lane wrote:
> Andres Freund  writes:
>> On 2023-02-01 16:21:16 +1300, Thomas Munro wrote:
>>> It's always in proc_exit() in StartupProcShutdownHandler(), a SIGTERM
>>> handler which is allowed to call that while in_restore_command is
>>> true.
> 
>> Ugh, no wonder we're getting crashes. This whole business seems bogus as
>> hell.
> 
> Indeed :-(

Ugh.  My bad.

> The fundamental issue is that we have no good way to break out
> of system(), and I think the original idea was that
> in_restore_command would be set *only* for the duration of the
> system() call.  That's clearly been lost sight of completely,
> but maybe as a stopgap we could try to get back to that.

+1.  I'll produce some patches.

-- 
Nathan Bossart
Amazon Web Services: https://aws.amazon.com


В списке pgsql-hackers по дате отправления
От: Justin Pryzby
Дата:
От: Yugo NAGATA
Дата:
FAQ