Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dym7H-0001Ci-Uy for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Oct 2017 21:49: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 1dym7H-0004SE-Hs for pgsql-hackers@arkaria.postgresql.org; Sun, 01 Oct 2017 21:49:39 +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 1dym5k-0001Co-4e for pgsql-hackers@postgresql.org; Sun, 01 Oct 2017 21:48:04 +0000 Received: from mail-yw0-x22b.google.com ([2607:f8b0:4002:c05::22b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dym5c-0006N3-0B for pgsql-hackers@postgresql.org; Sun, 01 Oct 2017 21:48:03 +0000 Received: by mail-yw0-x22b.google.com with SMTP id u205so2624537ywa.5 for ; Sun, 01 Oct 2017 14:47:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=/mTK0ZNtdP7mtzMnyM/qecCGwf8rx1hURnYuG+F/uek=; b=BLAlOPiGkEVIWulLKlamMKGoio77RVqyQ1SXI0cMkHbyNRRli0uQyrvQdq/sHVzb5M GhQppL5kyeVYN2n5x437az0fWuuZHTFNnBgsSYSCZ4BCaN0zf63Pk/jf/Ah4sorojMym Hup8iNm9arUoS71C5niNCbz3BvcRCBqAV+zsqwbyyrZs4olDQpbmXjXbLkN6QGIo5t6l 4GyhrANcjBYeASxC3W61lb2qA0mVCpFH9q1t8lmhsRjIZAO/O7emSpEjsn7kYJXO1aO0 +C8qEAe0ZELdXg+QcSHEtkbWqihfYIOe5N4fvV9gMvpOTf93wMVBMNw7ONFMMRa2v9oU GyJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=/mTK0ZNtdP7mtzMnyM/qecCGwf8rx1hURnYuG+F/uek=; b=ezYRv4zXTNPFVXvzOOqY2eE5y/0uYmU8jCsyLmBdqWVnotq6a+myNq25I9RjUbPbWw RYFs3IUCRZj42ZKgo2iZ0xeFTDdMzP/Ss9/GT11BIemlYPMdlcpl8vzIG7DditJ+xZre j5Gob3eZdAXMqC4tZejRuMFbRXaaTVp0n8vKe++SiTpni178GlM27ojq8OTNuXipT7cr VYXmE3iV3WcyZUaikiratZvEoOYP91UZC05Se5bCmeyOUGDjIQ+mn0X2A+sQ7/jq2Iyv r46NAv3CNCXUl+4+shcOb3cW5pWeWyWTR3OFrEgPCTxGSC/+gSvHo7oiDqoWuB3YFnOi uQrw== X-Gm-Message-State: AMCzsaU1lBdXdwnbUt3+t8ltLg7OsQtWKHJMMJ/fqzNkpmuvTRiPte92 nSP1I4aD4Hy6UW+FY8VWuAF0KfhBrC/6BoC8D6Xvcy5++FjbUe98WE0VkQvW6BjfrG3/FhtXbHD ot+9fQWFJ9kv5EQJlwlRb3rQtMDJOnKLwaXuQ/vuN0OyX1v4cD33aRxbu70WvJteCyCm6B4wly9 berNYBjbTfTfzA X-Google-Smtp-Source: AOwi7QD0ewNEgnCyUhhkkc5cwLrnzZd+jV098mpCMUPDxlV8dHNW17X5Q+q61TueV8/aAOq0MW2FEA== X-Received: by 10.37.13.68 with SMTP id 65mr6144490ybn.149.1506894473899; Sun, 01 Oct 2017 14:47:53 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id d145sm3817759ywh.7.2017.10.01.14.47.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 01 Oct 2017 14:47:53 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pg_ctl kill support for KILL signal was Re: [COMMITTERS] pgsql: Add test for postmaster crash restarts. To: Andres Freund , Tom Lane Cc: PostgreSQL-development References: <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> <20171001023214.zgw3gs7mxjmlkqcd@alap3.anarazel.de> <45d42d41-6145-9be1-7261-84acf6d9e344@2ndQuadrant.com> <26945.1506890564@sss.pgh.pa.us> <20171001204854.ph3l6qo7b55yred3@alap3.anarazel.de> Message-ID: <070f98a2-9448-8f4c-23a8-34d1123be3af@2ndQuadrant.com> Date: Sun, 1 Oct 2017 17:47:52 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171001204854.ph3l6qo7b55yred3@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-MW List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 10/01/2017 04:48 PM, Andres Freund wrote: > On 2017-10-01 16:42:44 -0400, Tom Lane wrote: >> Andrew Dunstan writes: >>> On 09/30/2017 10:32 PM, Andres Freund wrote: >>>> 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. >>> I agree, but I think we need this discussed on -hackers. Does anyone >>> have an objection to allowing "pg_ctl kill KILL somepid"? As Andres >>> points out, in most places you can just call kill from the command line >>> anyway, so disallowing it is not really a security feature. Having it >>> would let us have portable crash restart tests. >> +1 for portable tests, but it still seems like something we don't want >> to encourage users to use. What do you think of leaving it out of the >> documentation? > As far as I can tell we've not documented the set of acceptable signals > anywhere but the source. I think we can just keep it that way? As documented it's in the help text: printf(_("\nAllowed signal names for kill:\n")); printf("  ABRT HUP INT QUIT TERM USR1 USR2\n"); So we can leave it out of there. OTOH I'm not a huge fan of security by obscurity. I guess this wouldn't be too bad a case. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers