Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket

Поиск
Список
Период
Сортировка
Искать
От
Nico Williams
Тема
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket
Дата
Msg-id
20180719203810.GO9712@localhost
Ответ на
Список
Дерево обсуждения
[HACKERS] possible self-deadlock window after bad ProcessStartupPacket Jimmy Yih <jyih@pivotal.io>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after bad ProcessStartupPacket Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after bad ProcessStartupPacket Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] possible self-deadlock window after bad ProcessStartupPacket Asim R P <apraveen@pivotal.io>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Heikki Linnakangas <hlinnaka@iki.fi>
Re: [HACKERS] possible self-deadlock window after bad ProcessStartupPacket Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] possible self-deadlock window after bad ProcessStartupPacket Ashwin Agrawal <aagrawal@pivotal.io>
Re: [HACKERS] possible self-deadlock window after bad ProcessStartupPacket Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after bad ProcessStartupPacket Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Nico Williams <nico@cryptonector.com>
Re: [HACKERS] possible self-deadlock window after badProcessStartupPacket Andres Freund <andres@anarazel.de>
Re: [HACKERS] possible self-deadlock window after bad ProcessStartupPacket Robert Haas <robertmhaas@gmail.com>
On Thu, Jul 19, 2018 at 01:35:02PM -0700, Andres Freund wrote:
> On 2018-07-19 15:17:26 -0500, Nico Williams wrote:
> > You can create that thread with a really small stack given that its only
> > purpose is to do this error reporting and exit.
> 
> You still have a full kernel process backing it, which is *FAR* from
> free. [...]

It's not that big.  Its stack is small.
> [...] And we'd enough infrastructure to setup threads with small stacks
> on a number of platforms.

Portability is actually the problem here, yes.  But you could enable the
async-signal-safe thread path in some platforms and not others, and
you'd still be improving things.

> > Running a thread that does only this does not impact the rest of the
> > code in the backend at all -- it's not "threading" the backend.
> 
> It actually does. Without passing thread related flags to the compiler,
> which you need to do for correctness, the compiler and libraries are
> free to use faster non-threadsafe implementations.

That's build goop, but there's no need to add mutexes or whatever
elsewhere.

Nico
-- 

В списке pgsql-hackers по дате отправления
От: Andres Freund
Дата:
От: Andres Freund
Дата:
FAQ