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 1jqe8B-0005lc-P6 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2020 14:54:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jqe8A-00044f-NF for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2020 14:54:34 +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 1jqe8A-00044Y-Ac for pgsql-hackers@lists.postgresql.org; Wed, 01 Jul 2020 14:54:34 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jqe88-0003Gw-29 for pgsql-hackers@postgresql.org; Wed, 01 Jul 2020 14:54:33 +0000 Received: by mail-qt1-x843.google.com with SMTP id o38so18619036qtf.6 for ; Wed, 01 Jul 2020 07:54:31 -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=MXy6n+WwGuj0JZ99AdAnNg1/G+g1y6GvB9hP2HGWDtM=; b=YkLnZlygd7cIU3Tzv743AWsKKMGF6pypRT9KzD3Q0SXNcHpZ0bN+8biIHDgxmhOcs/ B1KHA/dBB2LE+S6ZBqVfay7NObxYWi/I8ugi3zjsdWqFK1oq6DMr9SSRD4yzDCbNhgTO WOhiuVEhlPtYhoh1D85y3oCqu6q4XZJ8o1clsfoQUN/T2gQpdqQ3vJpJ+PrddeGN9TXU HNwbN+wHsR3nln254K+ZTh4iSvCZ8EhsMnHhNTTxtuz3kUUkSQp5Es/FoTQyTRZY9NA3 dLfHlCvRHyUgGoHF2MBuLvqJ+j9+OY7J6GOo6P7NRmH6hctbUT4MxxFT+r+7sVn7JhBK 5GoA== 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=MXy6n+WwGuj0JZ99AdAnNg1/G+g1y6GvB9hP2HGWDtM=; b=NxaVY+nDABLbRrk+aFineKlpBaAJwE8eivPq/AtMZWTtyKdeMD+lHSBK5PWX0Ft3bu lsxKp0lvj5Vt8a9UBvviB4enJeZJADDFjltb2ylCUNBPhHEHzuozTqRnhnSFTb4cGpLj fEaJxDiqGAlGpuqLJiibO/ulhSZlliq6/Q3v1lmZgqeRIEImCskNPZi0GM1Z+ZjlK0jN UG5XyJfJaHQP4kXCWcarjUil1lR+5b44+BkYJ0HKpaKtl/wed7MtpcWwI+lboYjJyo0x LMTF8SKMjqXp2VM/KLv89DqWI9J3kycj9FKV7FA7z1WU68QgNKAO76WC4x/dDxmO1OYe iG/w== X-Gm-Message-State: AOAM530oo6Jml5BTol9kawCdzadOI65tdhjCv6h3HEjHSZRIpqFQZiTz kUB7o0oTyWznGpEY5ssJ+7ak8RNTJa0= X-Google-Smtp-Source: ABdhPJxoZcqH4VKGVIiyIkPGtRbq+mzKHJk5TV5o2vu+/Vj3owqD6ymw/REjrAxh0squrcpLEN+4vg== X-Received: by 2002:ac8:3fcf:: with SMTP id v15mr23530471qtk.274.1593615270682; Wed, 01 Jul 2020 07:54:30 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id n2sm5827506qtp.45.2020.07.01.07.54.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 07:54:30 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 76A402A3AAB; Wed, 1 Jul 2020 10:54:28 -0400 (-04) Date: Wed, 1 Jul 2020 10:54:28 -0400 From: Alvaro Herrera To: Fujii Masao Cc: pgsql-hackers@postgresql.org Subject: Re: max_slot_wal_keep_size and wal_keep_segments Message-ID: <20200701145428.GA7427@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-01, Fujii Masao wrote: > On 2020/07/01 12:26, Alvaro Herrera wrote: > > On 2020-Jun-30, Fujii Masao wrote: > > > > > When I talked about max_slot_wal_keep_size as new feature in v13 > > > at the conference, I received the question like "Why are the units of > > > setting values in max_slot_wal_keep_size and wal_keep_segments different?" > > > from audience. That difference looks confusing for users and > > > IMO it's better to use the same unit for them. Thought? > > > > Do we still need wal_keep_segments for anything? > > Yeah, personally I like wal_keep_segments because its setting is very > simple and no extra operations on replication slots are necessary. Okay. In that case I +1 the idea of renaming to wal_keep_size. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services