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 1htgoU-0001dp-7S for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Aug 2019 23:18:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1htgoS-00063M-Py for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Aug 2019 23:18:16 +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 1htgoS-000608-Fd for pgsql-hackers@lists.postgresql.org; Fri, 02 Aug 2019 23:18:16 +0000 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1htgoK-0004SN-NT for pgsql-hackers@postgresql.org; Fri, 02 Aug 2019 23:18:15 +0000 Received: by mail-pl1-x641.google.com with SMTP id az7so34152262plb.5 for ; Fri, 02 Aug 2019 16:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ERvSmt7QyelG2B0jrqtCZpx9uPLYRphK8iuNj/eMEXs=; b=GiFfEZX65MiQEzaQqQrm/F11i78uqXtVPESNxZAaz3HRi3I2jk/+xWt1nBiOHuIHKx wvymIsR6zJK5zRiWC4Yv9H7w4siMc46ToIMmR6jEd4BRVJWOii1xE8pIx7PgG8Y+J18T l7splYlogqoftDa5woiw/HIdgmizILPO91UAZs61+Y0pI7v+O+QXuBhsDZpkZyHuYPE+ Erca4og7j1n0FQmFpaOp/aGecWvfd2juT5MIjQ4N394UjoB1c3BrIyzcJ5MTxDJ+yKTs pwEjCw6lRsB5POu1W6N88ijSXTLlGqDbLFj5V+6KjovwUqnokEyRkOXYww9U/RE9vFju ctjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ERvSmt7QyelG2B0jrqtCZpx9uPLYRphK8iuNj/eMEXs=; b=NHexvPsACwWz4LuHO+sacIl6n1op8r4zEzkHhcC7ZjRW3DQHXtgvMAhpsfAgDlkKNH anvPiTwM6o2Gtd+WC/rWIJ8OAd2F96sryB1xOWS/RfEQJn4ue7uSmhT9Yr01OD6tawmw +C4JDi9TQ8VK35roc8KD5Ps3zDs1T9WnUZrhdDcmiLDCli6oiK7/MwWWjEq3u+GWFDGR q3DNtYNNqL+oa0jddZZuiuG2v2ZGdWMnjuMQDFFmvzc6RiaiqPI8EZZTZpNh/yrF4HJQ eCbSG8Q911tAc4G+TtjhMLFqi58c0hDJ7fab10AJtRHsyeL/ykgAzFbloNx/OpQIwRyp z3gA== X-Gm-Message-State: APjAAAWxKTyV2Ojhyx8NTXduln1CCMxus8nJIyUFs54rJtv4DWBiRv4c oIZj6R+7niQ6scAYYdYRh292MQSBg/nWGt6yX1I4dFHxlPDIOvPl2gNqoRJw4feyhvTuyqgw2qH y0CtIycK31ngqFtZ2NRoLtWEuat+QKX80zIN46Ubj+DijW52eIBbGC6RMHp4q6r7KUkTggzXgzO 2JvvutRlEv5uSb X-Google-Smtp-Source: APXvYqwNqrOp6s1uby9Ir0jstsH3aaFDR3aOJlbDR13kICWrOIng3Ca0Axnd6hb0sRThz6REcKmadw== X-Received: by 2002:a17:902:347:: with SMTP id 65mr38412433pld.232.1564787884982; Fri, 02 Aug 2019 16:18:04 -0700 (PDT) Received: from osaka.octopusnet (p8460114-ipngn40401marunouchi.tokyo.ocn.ne.jp. [180.57.170.114]) by smtp.gmail.com with ESMTPSA id j5sm66166273pgp.59.2019.08.02.16.18.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Aug 2019 16:18:04 -0700 (PDT) Subject: Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions To: Tom Lane , Andres Freund Cc: Stephen Frost , Amit Kapila , Robert Haas , Tomas Vondra , "pgsql-hackers@postgresql.org" 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> <1329.1564787389@sss.pgh.pa.us> From: Ian Barwick Message-ID: <1212f308-8140-32c8-2b5c-110f0f352f2d@2ndquadrant.com> Date: Sat, 3 Aug 2019 08:18:00 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <1329.1564787389@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 8/3/19 8:09 AM, Tom Lane wrote: > 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? The slight problem with that, particularly with the use-case I am concerned with (writing replication configuration), is: [2019-08-03 08:14:21 JST] FATAL: 0A000: standby mode is not supported by single-user servers (I may be missing something obvious of course) Regards Ian Barwick -- Ian Barwick https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services