Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGrZe-0008Dt-CS for pgsql-general@arkaria.postgresql.org; Mon, 20 Nov 2017 19:17:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eGrZd-0006Qg-Vq for pgsql-general@arkaria.postgresql.org; Mon, 20 Nov 2017 19:17:41 +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 1eGrZd-0006QT-PR for pgsql-general@lists.postgresql.org; Mon, 20 Nov 2017 19:17:41 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eGrZa-0007dE-9e for pgsql-general@postgresql.org; Mon, 20 Nov 2017 19:17:41 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A6A93212B6; Mon, 20 Nov 2017 14:17:34 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 20 Nov 2017 14:17:34 -0500 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; s=fm1; bh=qeWPq1FFJHooUjvrQ8rPjSCarLMie IY65ItM+Bn0qVM=; b=WbMOE0UcA6UlmB8xgGJ3jpqZjeS84nlwESkdvblhl1jXZ 3PqUhhc5qWhE+S8bZC3UYz6ZDCx7vGb8XDsYkxRjucRskjOvQxTNFXYSpcBI1lTs DEwPTJ77woSSYTaBD1DrCduoEEVsxfmRo5hSBgsLShDzvol8eOdwDPAw6EMXBlKr vwSy906Ww4oh4ThCqWtDfqfNKRWzKMeAWdAqta5sVHLEYEz3kHCt0OMUGiGNbFT8 YzlRJc+bgANBqk4J4N6CG7jk95vldSSAKSPLoW2b6xRXmuqQR5zL73416ufW0M8L PkTRkTgIfAkL79dI+1+zjQJNctEqfT5R6vF3VZ5nw== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 513A77FAD7; Mon, 20 Nov 2017 14:17:34 -0500 (EST) Date: Mon, 20 Nov 2017 11:17:33 -0800 From: Andres Freund To: David Pacheco Cc: Tom Lane , pgsql-general@postgresql.org Subject: Re: [GENERAL] postmaster deadlock while logging after syslogger exited Message-ID: <20171120191733.ac34edgl5x6adrbb@alap3.anarazel.de> References: <19239.1510000503@sss.pgh.pa.us> <20171117015040.m36ovf5dqtg3star@alap3.anarazel.de> <22373.1510886389@sss.pgh.pa.us> <20171117025438.vjvgmrrnkpnojleq@alap3.anarazel.de> <23680.1510887983@sss.pgh.pa.us> <5B347B42-1A82-448A-9814-CAAB3BA189E8@anarazel.de> <24571.1510889371@sss.pgh.pa.us> <20171120183458.kdc5qklykeu74k2e@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2017-11-20 11:12:08 -0800, David Pacheco wrote: > > > This is a critical point. As far as I can tell, all that's necessary > > > for this deadlock to occur is: > > > > > > - the syslogger is unable to make forward progress (e.g., because it > > > segfaulted) > > > > This specific case I don't care that much about, but ... > I understand if the community isn't interested in fixing this case if other > users aren't seeing it much, but surely it's still a bug that this unusual > case can result in a deadlock? I care about the deadlock issue if triggered by out of memory cases. That's something that can be expected during operation. Being fully resistant against segfaults in arbitrary places however is not unlikely to introduce more bugs than cases where it saves the day. Greetings, Andres Freund