Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvV3G-0007AJ-C3 for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Feb 2019 22:36:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gvV3D-0006Lo-RG for pgsql-hackers@arkaria.postgresql.org; Sun, 17 Feb 2019 22:36:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvV3D-0006Gh-H8 for pgsql-hackers@lists.postgresql.org; Sun, 17 Feb 2019 22:36:43 +0000 Received: from mail-it1-x141.google.com ([2607:f8b0:4864:20::141]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gvV3A-0003C1-OW for pgsql-hackers@postgresql.org; Sun, 17 Feb 2019 22:36:42 +0000 Received: by mail-it1-x141.google.com with SMTP id y184so37106615itc.1 for ; Sun, 17 Feb 2019 14:36:40 -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:mime-version:content-disposition :in-reply-to:user-agent; bh=iEareWhFuj506LxjgKrjqRjuGto3I6j1E52sMXoPtSs=; b=P3kGpuZjPUrDXiHNXckdTKFpGsWhA4RD8LoffZE5GhDf5wh93O5r0/JGae4Nnj69MC IGOBRIP5xoYmuQHKp1PrBTuqp0xFoXFoOHICYIcH8cVIn2Y1akHtMp8tcTjXDTFfsGYy y5L7iQHth1FOrUxb5lRK7lJ6Z+ucPt9F78TcmbiyLMNosCgfOUsH/e7sCQ9F3UHy1KNV zn50dwMMerAOq+pSRon7HsqYJhfHqSaIjgtLou0oOsbK8NmlV0pBqQ2JLxcO60L7fOQa 73cYR9BB4aqPHElKm/QMomn/kMJZ/4geDJXLhECmcFoEP5dvvAspcHDu068v4MWfUDqT spMQ== 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:mime-version :content-disposition:in-reply-to:user-agent; bh=iEareWhFuj506LxjgKrjqRjuGto3I6j1E52sMXoPtSs=; b=W7jClio4BWuZ0DrI1tvRVs6gPhvqh8FZmL7c/6I72JPs2nrIVGxqrcn2R2pSzOIzm5 3LpA8QFtgykjcGn7/FkkdMTZH+44VwOG/DwSBPRtK6FbC763X3A1OBZzHNDvzcS25AuF Z+UfuLDosL9k9QotwXXg+MSly/F6NXpZL9arowpWk3EjEa+ZPBhzy5z/v44mHfqslNdg V4JUCZ/U2CTV6q6SS0kT40HTlHVxZfP7pRpADJ2iQFKd7n+Iz45ElaNVG0IZSmywiHvL E/nSd4dFDkc2s+j4TrNo4G/wyTUQs5DQtsBrTAHkT87DUj9Hrf9bMxDmFbWaYm4R5kZ/ vY3A== X-Gm-Message-State: AHQUAubcqRN5+zTVtE3ojW1msxOs3+Xqt4R6gZT/h5ZIcpBsiEkxUAKC qY0XSet4rrBHKMO+wJxFCErdEA== X-Google-Smtp-Source: AHgI3Ibq1RwAbNFkj73VVax3OJftjNAxgMpBEfYgOCXSQdtqh/hosF95Zd+m8M4V0zgtaVwIerjLVA== X-Received: by 2002:a6b:7a4b:: with SMTP id k11mr11362927iop.119.1550442999891; Sun, 17 Feb 2019 14:36:39 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id v14sm4818538iol.61.2019.02.17.14.36.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Feb 2019 14:36:39 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id A36E9800A28; Sun, 17 Feb 2019 16:36:37 -0600 (CST) Date: Sun, 17 Feb 2019 16:36:37 -0600 From: Justin Pryzby To: Thomas Munro Cc: pgsql-hackers@postgresql.org Subject: Re: REL_11_STABLE: dsm.c - cannot unpin a segment that is not pinned Message-ID: <20190217223637.GF28750@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Feb 18, 2019 at 09:26:53AM +1300, Thomas Munro wrote: > Huh. What exactly do you mean by "killing the postmaster"? If you > mean SIGKILL or something, one problem with 11 is that > gather_readnext() doesn't respond to postmaster death. I fixed that > (and every similar place) in master with commit cfdf4dc4fc9, like so: On Mon, Feb 18, 2019 at 10:26:12AM +1300, Thomas Munro wrote: > Yeah. I suppose we should probably consider back-patching a fix for that. It hasn't been an issue for us, but that seems like a restart hazard. Who knows what all the distros initscripts do, how thin a layer they are around pg_ctl or kill, but you risk waiting indefinitely for postmaster and its gather backend/s to die, all the while rejecting new clients with 'the database system is shutting down'. +1 Justin