Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eHTFU-0004ry-Oc for pgsql-general@arkaria.postgresql.org; Wed, 22 Nov 2017 11:31:25 +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 1eHTFS-0003Ni-Q1 for pgsql-general@arkaria.postgresql.org; Wed, 22 Nov 2017 11:31: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 1eHTFS-0003NX-F7 for pgsql-general@lists.postgresql.org; Wed, 22 Nov 2017 11:31:22 +0000 Received: from mail-it0-x236.google.com ([2607:f8b0:4001:c0b::236]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eHTFJ-00012k-4S for pgsql-general@postgresql.org; Wed, 22 Nov 2017 11:31:21 +0000 Received: by mail-it0-x236.google.com with SMTP id u132so5971264ita.0 for ; Wed, 22 Nov 2017 03:31:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xoWlGEWdOHKB8K3UK27G5oe4Zp/Y1FW0pR6NWn98U5k=; b=fy2A5nYTd9MbRVdhYnu1ynBH+j3FPG9sZoIyw14gauLqQ2M6MZHstehIZ1eFHnnP2p D6DaunIGw42FBAB7YUgOqZzi5Cp31WG2FoZ7zGuch8NATa5J7aQ5CbD8etQ1K/J1d+M0 Xvk3TL375TDw0+5McApYxPWmsmkPcyECvesLFCh/BaUhoj6z37ZWlbxf8m7NT9lNQJrd 9s+xTkC4wbLlxQqTvRaDCzH6ONz6lS3UnBTLtZXFs3ogS8OU3y/2YaePqW8qoHBOFJS6 mhZTZ/has0mG/Ypjpnod8ZPyoroBBxEVDyj7Ki/E+XIKL4xXSHu7S8/rJ+u0MpTgpqDu IX0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xoWlGEWdOHKB8K3UK27G5oe4Zp/Y1FW0pR6NWn98U5k=; b=EEDPdAhdJVnsAfDuHQbIBExxi0kbNfLeHpGO2ui9LIrMkWU2E4ifWCdGMWuFQBpp4k COOxqu+foRZuLY2ZyMintlSN1G3aEB5OXLW+KiwOD6O3x8sk8T6vOsCapTypLhKyNtnu W2h38O/F90spkha6puHigKMYSh5AZY8osLa6pB5WdRF3/d9ePu9akb8LnozysiXcQaAE DuxhFGviBDEmGp5tz1CzWFtaouyGo+HT+1sJCHdTL/lTnHcmXxFYad8dTf2JW+5UV6dH Si/5PPxml7wWR77uW+fpQo8UwQUBwTn7qaxWVcxhcydNeBg0bSbRQJ1kFdg7avpuh4P4 k0UA== X-Gm-Message-State: AJaThX65GXSanD+hMHFmx+MlQ/cAP5gvvZSztUgD14P+wmz2MetzCQkM lOAa8b0cCC/qNsFkM5aPDZ1VR2FLCmg= X-Google-Smtp-Source: AGs4zMaP/s3nrnhQWjgFalaL8L7gD9Tf+LWe2FzASwyBjYkfV+2zeXH6+gIm1VOY25l0yNntuLIeXg== X-Received: by 10.36.135.199 with SMTP id f190mr5807993ite.133.1511350270590; Wed, 22 Nov 2017 03:31:10 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id s67sm5708193iod.85.2017.11.22.03.31.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Nov 2017 03:31:10 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id EAC26800FE7; Wed, 22 Nov 2017 05:31:08 -0600 (CST) Date: Wed, 22 Nov 2017 05:31:08 -0600 From: Justin Pryzby To: Andres Freund Cc: pgsql-general@postgresql.org Subject: Re: backends stuck in "startup" Message-ID: <20171122113108.GA17429@telsasoft.com> References: <20171121230926.GA17194@telsasoft.com> <20171121234027.b4n4jlsfda42qb6r@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171121234027.b4n4jlsfda42qb6r@alap3.anarazel.de> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Nov 21, 2017 at 03:40:27PM -0800, Andres Freund wrote: > Hi, > > On 2017-11-21 17:09:26 -0600, Justin Pryzby wrote: > > I'm sorry to report this previously reported problem is happening again, > > starting shortly after pg_upgrading a customer to PG10.1 from 9.6.5. > > > > As $subject: backends are stuck in startup for minutes at a time. I didn't > > strace this time, but I believe last time I saw one was waiting in a futex. > > > - I'm planning do disable sync seqscan for the night (although as I understand > > that may not matter (?)) > > I doubt it matters here. The system still got wedged/stuck after a few hours even with: synchronize_seqscans=off; and use of pg_buffercache disabled (but extension not actually dropped), and our maintenance (vacuum and reindex) scripts disabled (these normally only run at night, so at least REINDEX script wasn't involved with several earlier incidents of this issue; but, I was still running the vacuum ANALYZE script post-upgrade). Justin