pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian Barwick <ian.barwick@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: Amit Kapila <amit.kapila16@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions
Date: Sat, 3 Aug 2019 08:18:00 +0900
Message-ID: <1212f308-8140-32c8-2b5c-110f0f352f2d@2ndquadrant.com> (raw)
In-Reply-To: <1329.1564787389@sss.pgh.pa.us>
References: <CA+TgmoZVx-vco-39EN9MxO9BaG-oVY+NuDeZPGdS=_bX5VH70w@mail.gmail.com>
	<20190624185647.GW2480@tamriel.snowman.net>
	<15032.1561403529@sss.pgh.pa.us>
	<20190624192014.GB2480@tamriel.snowman.net>
	<56aff4f3-dec8-f462-7feb-0938411b04a6@2ndquadrant.com>
	<CAA4eK1+JMm=tvx720y6jhD8pdzt=HdS1-TwQwkARib2pwK8EvQ@mail.gmail.com>
	<20190802222254.qsvqjtkwte464lu3@development>
	<31697.1564784856@sss.pgh.pa.us>
	<CAOuzzgqNyQM_z0biEEBVBK9WcaLmbCyWrd5xTdf-Oxb_9pntLA@mail.gmail.com>
	<32681.1564786027@sss.pgh.pa.us>
	<20190802225640.gm7bhwkgctzje4su@alap3.anarazel.de>
	<1123.1564787124@sss.pgh.pa.us>
	<1329.1564787389@sss.pgh.pa.us>

On 8/3/19 8:09 AM, Tom Lane wrote:
> I wrote:
>> Andres Freund <andres@anarazel.de> 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





view thread (117+ messages)  latest in thread

Message-ID: <1212f308-8140-32c8-2b5c-110f0f352f2d@2ndquadrant.com>
Permalink:  ../1212f308-8140-32c8-2b5c-110f0f352f2d@2ndquadrant.com/
Also on:    postgresql.org/message-id/1212f308-8140-32c8-2b5c-110f0f352f2d@2ndquadrant.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: ian.barwick@2ndquadrant.com, tgl@sss.pgh.pa.us, andres@anarazel.de, sfrost@snowman.net, amit.kapila16@gmail.com, robertmhaas@gmail.com, tomas.vondra@2ndquadrant.com
  Subject: Re: [PATCH] Stop ALTER SYSTEM from making bad assumptions
  In-Reply-To: <1212f308-8140-32c8-2b5c-110f0f352f2d@2ndquadrant.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox