Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kG7Iz-0000Qh-V3 for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Sep 2020 21:07:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kG7Iy-0000JL-Sl for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Sep 2020 21:07:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kG7Iy-0000JB-MB for pgsql-hackers@lists.postgresql.org; Wed, 09 Sep 2020 21:07:00 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kG7Iw-0002wC-Ea for pgsql-hackers@lists.postgresql.org; Wed, 09 Sep 2020 21:07:00 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C973A5C00C5; Wed, 9 Sep 2020 17:06:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 09 Sep 2020 17:06:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=riB1tiVUjDvX5+m8q/wtgSWvA9F PwOVEhcV4HmSIApI=; b=Bnq6EFhsmA8AzgPiWmmc0U6fV3CegyGTn68aJC9GRg0 r6uTjJlikNT1KpqAGyWtekDePUQyyfQrPvb27vHfZM4hhewOW0BZAeiKhMeJEUUq lfePXrchrZNC4F8oELJlrCko6PuA89NXahxJfzRmNKcBAh4bLMtQk6phRwgL8s/R qLgyCnBh6ab6gmHRaLQyaB1WtbI42bRszwV0EuhMQJN/ARGAYbcGxsPS8WvV/8Go zRMZvwgEXEvb992W7ULVJgoI6ppwt1vTP2oFtlgb8hNne6KlmMfAbIpjM+Rte/96 jffDZsaX5c0YMwRNxXbJd48h7XPDH5FQegSa5flEbuQ== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=riB1ti VUjDvX5+m8q/wtgSWvA9FPwOVEhcV4HmSIApI=; b=qcuANlalLpWhWFIU3irtsW YkrdISen7wWBTRj24bP0zlAJpHTZh0H7/EYtxhXFNHspFDqfw6OGmcOD5byAVK/x 9Cz2YdPckLj0AB+j5MrVZswS5BJPxB0ls8DnhWMvt4XnebwJ6oxwZULKHpAn8CjD +1wwUm+rshwx0nzMEi+giUe69bxJSIWnNPcZzNs33viqu1/8sfMQmxIemdzPMnPW B9h2u3Yfxwify1VVeDKxjEE21OfdvJQhppFw96CMyxAs/l+LO26C0zSKDPCpT3Qm qmhVucCwiuAUJTQNKwIYHJviS0GmM+thZA/5TahJtqQ1KZgXPtIfrF5BIMRvDhkw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehhedgudehgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpeetnhgurhgvshcuhfhrvghunhguuceorghnughrvghssegr nhgrrhgriigvlhdruggvqeenucggtffrrghtthgvrhhnpedukefhkeelueegveetheelff ffjeegleeuudelfeefuedtleffueejfffhueffudenucfkphepieejrdduiedtrddvudej rddvhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 14AEF3280063; Wed, 9 Sep 2020 17:06:56 -0400 (EDT) Date: Wed, 9 Sep 2020 14:06:54 -0700 From: Andres Freund To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org Subject: Re: SIGQUIT handling, redux Message-ID: <20200909210654.ayufghpoczz7jfmx@alap3.anarazel.de> References: <1850884.1599601164@sss.pgh.pa.us> <20200909192620.dylomoxknmt6rdb3@alap3.anarazel.de> <110116.1599682140@sss.pgh.pa.us> <20200909202201.unpjmshshu7sge6i@alap3.anarazel.de> <112673.1599683437@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <112673.1599683437@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2020-09-09 16:30:37 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2020-09-09 16:09:00 -0400, Tom Lane wrote: > >> We could call it startup_packet_die or something? > > > Yea, I think that'd be good. > > I'll make it so. Thanks! > >> We see backends going through this code on a very regular basis in the > >> buildfarm, but complete hangs are rare as can be. I think you > >> overestimate the severity of the problem. > > > I don't think the BF exercises the problmetic paths to a significant > > degree. It's mostly local socket connections, and where not it's > > localhost. There's no slow DNS, no more complicated authentication > > methods, no packet loss. How often do we ever actually end up even > > getting close to any of the paths but immediate shutdowns? > > Since we're talking about quickdie(), immediate shutdown/crash restart > is exactly the case of concern, and the buildfarm exercises it all the > time. Yea, but only in simple cases. Largely no SSL / kerberos. Largely untranslated. Mostly the immediate shutdowns aren't when inside plpython or such. > > And in the > > SIGQUIT path, how often do we end up in the SIGKILL path, masking > > potential deadlocks? > > True, we can't really tell that. I wonder if we should make the > postmaster emit a log message when it times out and goes to SIGKILL. > After a few months we could scrape the buildfarm logs and get a > pretty good handle on it. I think that'd be a good idea. Greetings, Andres Freund