Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bUMWZ-0002Dl-1I for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 23:21:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bUMWY-00023B-7W for pgsql-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 23:21:30 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUMWX-00022Z-8o for pgsql-hackers@postgresql.org; Mon, 01 Aug 2016 23:21:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bUMWU-0001tR-Jm for pgsql-hackers@postgresql.org; Mon, 01 Aug 2016 23:21:28 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u71NLNmX021257; Mon, 1 Aug 2016 19:21:23 -0400 From: Tom Lane To: Andres Freund cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: PostmasterContext survives into parallel workers!? In-reply-to: <20160801225435.jgltryqui3cca2xh@alap3.anarazel.de> References: <14111.1470082717@sss.pgh.pa.us> <20160801221829.kfa7hzqlzt47mwsb@alap3.anarazel.de> <19232.1470090524@sss.pgh.pa.us> <20160801225435.jgltryqui3cca2xh@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 01 Aug 2016 15:54:35 -0700" Date: Mon, 01 Aug 2016 19:21:23 -0400 Message-ID: <21256.1470093683@sss.pgh.pa.us> X-Pg-Spam-Score: -2.2 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andres Freund writes: > Personally I think the whole logic should be reworked so we do most of > that that only from one place. Alvaro already mentioned a couple of reasons why that might not be so easy. > Especially the signal handler stuff > should imo just be replaced by setting latch, which then does the work > inside the normal main loop. Of course, then we're utterly dependent on the latch logic to be zero-failure, as any bug in it takes out the postmaster. That idea would've been rejected out of hand earlier in the development of the latch code. Maybe it's safe enough today, but I still wonder what it is that we're buying after we do such a massive rewrite of the postmaster. 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