pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: PostmasterContext survives into parallel workers!?
Date: Mon, 01 Aug 2016 18:28:44 -0400
Message-ID: <19232.1470090524@sss.pgh.pa.us> (raw)
In-Reply-To: <20160801221829.kfa7hzqlzt47mwsb@alap3.anarazel.de>
References: <14111.1470082717@sss.pgh.pa.us>
	<CA+TgmoYZ7LB5erAQ7AbigruWhcHoqxhvfYOF1mVxU-XT7rs+FA@mail.gmail.com>
	<20160801221829.kfa7hzqlzt47mwsb@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Andres Freund <andres@anarazel.de> writes:
> On 2016-08-01 18:09:03 -0400, Robert Haas wrote:
>> (Also vaguely on the list of things to clean up: can't we make it so
>> that bgworkers aren't launched from inside a signal handler?  Blech.)

> Isn't pretty much everything on-demand below postmaster started from a
> signal handler?

I think it depends.  As an example, maybe_start_bgworker is called
from PostmasterMain, *and* from ServerLoop, *and* from reaper,
*and* from sigusr1_handler.  That's likely excessive, but it's what
we've got at the moment.

I'm pretty sure regular backends are only launched from ServerLoop,
but for anything else it's uncertain.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (18+ messages)  latest in thread

Message-ID: <19232.1470090524@sss.pgh.pa.us>
Permalink:  ../19232.1470090524@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19232.1470090524@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, robertmhaas@gmail.com
  Subject: Re: PostmasterContext survives into parallel workers!?
  In-Reply-To: <19232.1470090524@sss.pgh.pa.us>
  References: <14111.1470082717@sss.pgh.pa.us> <CA+TgmoYZ7LB5erAQ7AbigruWhcHoqxhvfYOF1mVxU-XT7rs+FA@mail.gmail.com> <20160801221829.kfa7hzqlzt47mwsb@alap3.anarazel.de> <19232.1470090524@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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