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 1htggS-0001Ol-Ii for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Aug 2019 23:10:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1htggQ-0007p5-6q for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Aug 2019 23:09:58 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1htggP-0007oB-UB for pgsql-hackers@lists.postgresql.org; Fri, 02 Aug 2019 23:09:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1htggN-0004OA-Ms for pgsql-hackers@postgresql.org; Fri, 02 Aug 2019 23:09:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x72N9nL0001330; Fri, 2 Aug 2019 19:09:49 -0400 From: Tom Lane To: Andres Freund cc: Stephen Frost , Amit Kapila , Ian Barwick , Robert Haas , Tomas Vondra , "pgsql-hackers@postgresql.org" Subject: Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions In-reply-to: <1123.1564787124@sss.pgh.pa.us> References: <20190624185647.GW2480@tamriel.snowman.net> <15032.1561403529@sss.pgh.pa.us> <20190624192014.GB2480@tamriel.snowman.net> <56aff4f3-dec8-f462-7feb-0938411b04a6@2ndquadrant.com> <20190802222254.qsvqjtkwte464lu3@development> <31697.1564784856@sss.pgh.pa.us> <32681.1564786027@sss.pgh.pa.us> <20190802225640.gm7bhwkgctzje4su@alap3.anarazel.de> <1123.1564787124@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 02 Aug 2019 19:05:24 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1328.1564787389.1@sss.pgh.pa.us> Date: Fri, 02 Aug 2019 19:09:49 -0400 Message-ID: <1329.1564787389@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > Andres Freund writes: >> I think a commandline tool to perform the equivalent of ALTER SYSTEM on >> a shutdown cluster would be a great tool. > Perhaps, but ... >> Obviously this is widely out of scope for v12. > ... this. Although, there's always echo "alter system set work_mem = 4242;" | postgres --single Maybe we could recommend that to tools that need to do potentially-repetitive modifications? regards, tom lane