Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyU3c-0007Lz-Kb for pgsql-committers@arkaria.postgresql.org; Sun, 01 Oct 2017 02:32:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dyU3c-0008KX-7G for pgsql-committers@arkaria.postgresql.org; Sun, 01 Oct 2017 02:32:40 +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 1dyU3M-0007sf-R8 for pgsql-committers@postgresql.org; Sun, 01 Oct 2017 02:32:25 +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 1dyU3F-0002Ww-A6 for pgsql-committers@postgresql.org; Sun, 01 Oct 2017 02:32:23 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 2C79F214ED; Sat, 30 Sep 2017 22:32:16 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Sat, 30 Sep 2017 22:32:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=iG/nWdf0aiTVae0P2+yt9MIxu/v7dqsUByQteCsrHQQ=; b=Xm60iG7a +sa6sorO5F2ACYCKc5Xzpxy1d3B01M6L27bTDIgyOzjhEbq2y3I/c6lkRMeCiTJd x6JAF0X0wjjtZR8gBGBI6azFd/F5QcO3mxuUaVaiaLUUuMYn2+PBYE+1GSSyHbvV xKEVg4WIlkjRCj8/OrwP2Gvqs9Lmiy/mhXGwAYzSTeeKfc/zqWmM1Wisf6UBHgcx PQv8zlr3erW+F+jSH3ANQH1aElEvpW8ThnMi/Bcf828Xg3pMxrX1gSvvDB//zAMN 72l4oN6hYIiQch6kQGawkFl/gj9nvrSvMMpRi9GZZJaV6+v3DeEvYu2uIG3ijC05 zlOAl1bDgReETg== X-ME-Sender: X-Sasl-enc: yN7EmkBCuvQTMqZAioj77glYVq0PX2Z5NN71KIhudxcd 1506825135 Received: from intern.anarazel.de (unknown [136.24.76.72]) by mail.messagingengine.com (Postfix) with ESMTPA id D9EE57E430; Sat, 30 Sep 2017 22:32:15 -0400 (EDT) Date: Sat, 30 Sep 2017 19:32:14 -0700 From: Andres Freund To: Andrew Dunstan Cc: Tom Lane , pgsql-committers Subject: Re: pgsql: Add test for postmaster crash restarts. Message-ID: <20171001023214.zgw3gs7mxjmlkqcd@alap3.anarazel.de> References: <18695.1505840008@sss.pgh.pa.us> <20170919174232.soc2skrqxxdtnh22@alap3.anarazel.de> <21486.1506601297@sss.pgh.pa.us> <5ce9b1f4-dff8-6fe9-74ab-d8e1b993b1d5@2ndQuadrant.com> <20170930221043.iay4s7rmwm5l7wiw@alap3.anarazel.de> <56b65da3-f7cc-494c-7952-ba5f6c804d7e@2ndQuadrant.com> <20170930222712.xgdgxnt4sjvig5mn@alap3.anarazel.de> <20170930224424.ud5ilchmclbl5y5n@alap3.anarazel.de> <75777957-d16f-f799-d0ec-bc3d5b7c72de@2ndQuadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <75777957-d16f-f799-d0ec-bc3d5b7c72de@2ndQuadrant.com> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Hi, On 2017-09-30 22:28:39 -0400, Andrew Dunstan wrote: > >> But even after fixing that, there unfortunately is: > >> > >> static void > >> set_sig(char *signame) > >> { > >> … > >> #if 0 > >> /* probably should NOT provide SIGKILL */ > >> else if (strcmp(signame, "KILL") == 0) > >> sig = SIGKILL; > >> #endif > >> > >> I'm unclear on what that provision is achieving? If you can kill with > >> pg_ctl you can do other nasty stuff too (like just use kill instead of > >> pg_ctl)? > > > I put it in when we rewrote pg_ctl in C many years ago, possibly out of > a superabundance of caution. I agree it's worth revisiting. I think the > idea was that there's a difference between an ordinary footgun and an > officially sanctioned footgun :-) Heh. I'm inclined to take it out. We could add a --use-the-force-luke type parameter, but it doesn't seem worth it. > Haven't tested on MSVC but with this patch it passes on jacana (mingw). Yay! Thanks for testing. Greetings, Andres Freund -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers