Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDLPj-0000w3-OZ for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Dec 2016 01:16:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cDLPi-00006h-Lk for pgsql-hackers@arkaria.postgresql.org; Sun, 04 Dec 2016 01:16:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cDLPh-00005j-Bf for pgsql-hackers@postgresql.org; Sun, 04 Dec 2016 01:16:21 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cDLPZ-00081c-TS for pgsql-hackers@postgresql.org; Sun, 04 Dec 2016 01:16:20 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id ABDF320593; Sat, 3 Dec 2016 20:16:12 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Sat, 03 Dec 2016 20:16:12 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=7CQP6Rh/rqgsh6iE/A0RETqzAoc=; b=Wv2qoKsYVYbALb+nz8sG f7hrlrC62NMGgcQinpo/xVwkcwwcvYTF6EGqK19xDoD4fRe97yy2dH+b+//l43EV C6wHcyDBIvfwzz67Sc1RilOfW5w60TZYr/ku3JGXh30RNQt8hXI+sGRP4OjQaIBH BKLKBVLjYtnqaC3RGajLYeA= X-ME-Sender: X-Sasl-enc: KAqAyPCJ/XN/olIgvC7TOaUHAdeZL2PSYNQM1z8HAum2 1480814172 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 6FD9B24733; Sat, 3 Dec 2016 20:16:12 -0500 (EST) Subject: Re: [COMMITTERS] pgsql: Use latch instead of select() in walreceiver To: Michael Paquier References: Cc: pgsql-hackers@postgresql.org From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Sat, 3 Dec 2016 20:16:12 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 On 12/1/16 8:50 PM, Michael Paquier wrote: > + if (rc & WL_POSTMASTER_DEATH) > + exit(1); > Hmm. We have always been very careful about not leaving immediately > from libpqwalreceiver.c which is an independent shared library so as > the WAL receiver can take cleanup actions. See here for more details: > https://www.postgresql.org/message-id/CAEepm=0hg_FX7kdUhosTpJ_kPsUZw6k-7nuQNy-dGAOaetn_tA@mail.gmail.com walreceiver.c does the same thing. The message you pointed out is not exactly clear why that would be wrong. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers