Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jsubT-0002qI-F0 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2020 20:54:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jsubS-0005Cm-Ef for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Jul 2020 20:54:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jsuaQ-0002hu-Is for pgsql-hackers@lists.postgresql.org; Tue, 07 Jul 2020 20:53:06 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jsuaN-0006lr-U1 for pgsql-hackers@postgresql.org; Tue, 07 Jul 2020 20:53:05 +0000 Received: by mail-qt1-x842.google.com with SMTP id d27so32883198qtg.4 for ; Tue, 07 Jul 2020 13:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=96iN3Kkz7zKeTAGIBBvX0G37Ge2gkbPEYkYj9qVaBHE=; b=xcdSp+3Dmbbr/qFa9ToRJ4/vrE/XZDTBvr1fJKrYGmOmg1QFs/ivWxO9LA3YzEotEk 5+RF0j1NLrGxy1ZM2szQ7nr3gwG+AZUK9DSA6/dzmpr31ODKGGCDeLq/fyKsT12cDIt0 GWVUT+gueNhwLhUkS30KbEB4C5NFZkMmSBd82gTlYUWqaKLHWfZbODU8M5uKLIWKuPHy 5B1YmyLqxAB9bsZR9WQNsLF991C29U8Y12q6CrBbdWYyU7IvGLQAqNh9FnmS/1Jj+OXU WtMZ/Uf4vbHQ//MxS0F1BM03fcypGInQqEhPo8+r7c88UV/vWB5+2+rXWTS1BBHYNlHw BZpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=96iN3Kkz7zKeTAGIBBvX0G37Ge2gkbPEYkYj9qVaBHE=; b=rSZD10+0t+vpt4T+0iKZ4VxiDpEKDW3jnQbVT7tJLPeICIAfZTpxqRsuLtWvgN7Dzh wjHGuXq2wiM5q0wn+VD2tzqb4I8aBFpkJGAYvBUR9S+TPC9ATxfDfUVttt0ocMmkK+3/ IMT+nleQTaf4VFq1pwhNrOSnYmfzu8DKjRFJJ6U4genPqOkoyL9w2WOmMiHKBqdbzJ0E fK3Zd6mVk+86DhI6Gz65R7/RB9tj4ckyCKaomNurfyLMS4MDPfZGiXJswEHsjO+gHWnK 7Nhncld/4prHGYiMB4xXVmbVjEND7xvKVWamFTUrVtEekaAIkk/tycPxdXI4JjS29e9I dofw== X-Gm-Message-State: AOAM531JEUT6NA3zbUGmM7S1PvEX+qKL9Ehk5ICAa91U+CVlfzcURiUT p9WBMS+LbTGjNLwFc6G7APMqUg== X-Google-Smtp-Source: ABdhPJw7v81OOL0sOGHl5w4UmHZSrB5TRUyepwxmh6pGsPJefLtEveSDqFJ2Ik3hPPVcweDD5bp4Ag== X-Received: by 2002:aed:3305:: with SMTP id u5mr54693388qtd.325.1594155182479; Tue, 07 Jul 2020 13:53:02 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id v12sm27625214qtj.32.2020.07.07.13.53.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 13:53:02 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 516042A3E31; Tue, 7 Jul 2020 16:53:00 -0400 (-04) Date: Tue, 7 Jul 2020 16:53:00 -0400 From: Alvaro Herrera To: Peter Geoghegan Cc: Amit Kapila , Jeff Davis , Bruce Momjian , Justin Pryzby , Tomas Vondra , Robert Haas , Andres Freund , David Rowley , Melanie Plageman , PostgreSQL Hackers Subject: Re: Default setting for enable_hashagg_disk (hash_mem) Message-ID: <20200707205300.GA26641@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jul-07, Peter Geoghegan wrote: > On Tue, Jul 7, 2020 at 1:18 PM Alvaro Herrera wrote: > > Yeah, backporting GUCs is not a big deal. Sure, the GUC won't appear in > > postgresql.conf files generated by initdb prior to the release that > > introduces it. But users that need it can just edit their .confs and > > add the appropriate line, or just do ALTER SYSTEM after the minor > > upgrade. > > I don't buy that argument myself. At a minimum, if we do it then we > ought to feel bad about it. It should be rare. Judging history, it's pretty clear that it *is* rare. I'm not suggesting we do it now. I'm just contesting the assertion that it's impossible. > The fact that you can have a replica on an earlier point release > enforces the idea that it ought to be broadly compatible. A replica without hash_mem is not going to fail if the primary is upgraded to a version with hash_mem, so I'm not sure this argument means anything in this case. In any case, when we add WAL message types in minor releases, users are suggested to upgrade the replicas first; if they fail to do so, the replicas shut down when they reach a WAL point where the primary emitted the new message. Generally speaking, we *don't* promise that running a replica with an older minor always works, though obviously it does work most of the time. > Technically > users are not guaranteed that this will work, just like there are no > guarantees about WAL compatibility across point releases. We > nevertheless tacitly provide a "soft" guarantee that we won't break > WAL -- and that we won't add entirely new GUCs in a point release. Agreed, we do provide those guarantees. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services