Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1duLjy-00026P-5a for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Sep 2017 16:51:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1duLjx-0005I7-NE for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Sep 2017 16:51:17 +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 1duLjw-0005Gn-AO for pgsql-hackers@postgresql.org; Tue, 19 Sep 2017 16:51:16 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1duLjt-0003yo-KA for pgsql-hackers@postgresql.org; Tue, 19 Sep 2017 16:51:15 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0D140219C4; Tue, 19 Sep 2017 12:51:12 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 19 Sep 2017 12:51:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=fm1; bh=sYQWGcH61jI0PFmMGZ p7k6j7ODs2UnWPXJpBnjAjulQ=; b=c8oIBDKZvGRLDZiSBWHN2E1IQ2D8RA70Md SAzHxQs8mRMOZI5PQ/rYMkVqG5FDO2I546IxIwQtaeHiXtF8CK3U/eH8OUeTVr90 H1ZDDspl2dYce4a2DRX/jffhxIHk443DUnjqpnM23nwYIpsxhixg5/DMRX3QZRwZ aloMOnTuOzWWBaJ1P1lHDbIvplfSA+Edlxy0Yvzx4xMhfHJJPHL1CCRdGbfBxeSR dqz2d+MnY9n3xCRkQXj3WMBMHSyhwOp9fyVeLVOdo6ukBYqCpDug6936NAh0D/hT nLeliMAr1/WglW1WBfPdBvzHmdG2zpB0OGDOVPKfxGV2+leECJrA== X-ME-Sender: X-Sasl-enc: Kw3ydBqqGuQMSBDJYPVhfV0ftquJj0Fb5wQRUhy6SCrn 1505839872 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id BB0D77FA9C; Tue, 19 Sep 2017 12:51:12 -0400 (EDT) Date: Tue, 19 Sep 2017 09:51:11 -0700 From: Andres Freund To: Tom Lane Cc: Robert Haas , "pgsql-hackers@postgresql.org" Subject: Re: Re: [COMMITTERS] pgsql: Perform only one ReadControlFile() during startup. Message-ID: <20170919165111.bsocu7ev2oaox4mx@alap3.anarazel.de> References: <20170916183849.kgqlyi3q2oy4qjkx@alap3.anarazel.de> <27204.1505591941@sss.pgh.pa.us> <20170916202705.lhszupzi3s4iaxy6@alap3.anarazel.de> <20170917080752.rcmihzfmgbeuqjk2@alap3.anarazel.de> <20170918103213.nhlmfh5v3qrgoskg@alap3.anarazel.de> <20170918180439.mgxvnbmxzb6br57t@alap3.anarazel.de> <20170919161012.i3j4ugktf2xkr4kb@alap3.anarazel.de> <17513.1505838240@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17513.1505838240@sss.pgh.pa.us> 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 2017-09-19 12:24:00 -0400, Tom Lane wrote: > Andres Freund writes: > > Unfortunately the backends themselves also react with inaccurate error > > messages to things like immediate shutdowns... > > Yeah, those signals are kind of overloaded these days. Not sure if > there's any good way to improve that. We could use the procsignal infrastructure (or some pared down equivalent with just one 'server-status' byte in shmem) for the non-crash immediate shutdown. That'd not be that a crazy amount of shared memory that'd need to be touched in shared memory, and we're not in an actual crash in that case, so no corrupted shmem. OTOH, that'd still leave us with some processes that aren't connected to shmem receiving the bare SIGQUIT - but I think they mostly already have more terse error messages anyway. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers