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 1jqjId-0000NG-Lf for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2020 20:25:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jqjIc-0000U0-JP for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Jul 2020 20:25:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jqjIc-0000Ts-Ca for pgsql-hackers@lists.postgresql.org; Wed, 01 Jul 2020 20:25:42 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jqjIZ-0001Sj-7L for pgsql-hackers@postgresql.org; Wed, 01 Jul 2020 20:25:41 +0000 Received: by mail-qt1-x842.google.com with SMTP id x62so19515424qtd.3 for ; Wed, 01 Jul 2020 13:25:38 -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=NemMwyMVsqanHUBPxTQ1gY3rPqnpLE5oTs83ICyRYZU=; b=Zq3dtY9JMAJQlfPhzZ0BFEFAWkoNe5/lMS13KxyG4neI2Jc+r+7ht2yPxpaBUHhwuD NSGJkroQKh+v3jfy4LiOObCng5+ruoDf/xPF5VQAEBwwplEMN/H+qZxGqyqqEL4To8gZ xsVNobjG1qllvvXXbH6jJWxkySzdjMjxXV92L0NDjBptPuRNVGnHcl4P42XQlFiv2AgL rvjDbMApWkCIGudYJuLIwp/Tg6xN2dWPi6Pczml7HMTmQMeY8u1nMND9ICozRnpFbHXx g50va/SpdZIJwOF7O9OH0HZCdC+lKYhFRAGs8ZRYTkzMq8BoCQwDR0pWxTt37xQbmzqW UJIg== 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=NemMwyMVsqanHUBPxTQ1gY3rPqnpLE5oTs83ICyRYZU=; b=nDBN5wVjqLAFUlHv0Ps+tFUA/Du5d92HZ/WX4kUJbrIQLfhd5sqfH+YU13zG1CsP2t f4eXG+nugZxkSztPl7u09B6eHJn2+Z8+lNP/PR61Y6cCH+pnYu6W+9mZ0SWDzWQc9MgY zxYq00XXGPdMcCWocAEb85JVPWxlUHAAFWvgw62fZQt4QbZvSqxNk28CszaEVOa0862t LRTdAyZJVK50OhMRF6p/5jePDa5l20Kk31VuVwR6b8j2pMgnGOPH0C4uJ9W9keeiw6u1 ZUD4j3uTfEvS8xUWQ8x4sbHlGnAq/BzQFDc4581e4QVzXLXbeT7jEzV1KikK6fhmkW/D Pcxg== X-Gm-Message-State: AOAM533+1X7ulSaDDHbZfwMLNEiNGJEQFelVcnKzxlxT7CC/dCKXdtjE H//TzJvUdjD4jLaH8KzVx5U0ta5DYVQ= X-Google-Smtp-Source: ABdhPJzauXxq5bmPDRZvfuZzRiJ0r3qPyJYckUWYl7HRJg84cN4mVVeHl1dFdSJO/OKQU+vjyzeaeQ== X-Received: by 2002:ac8:774f:: with SMTP id g15mr28392321qtu.192.1593635137617; Wed, 01 Jul 2020 13:25:37 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.18.252]) by smtp.gmail.com with ESMTPSA id q189sm6697097qkd.57.2020.07.01.13.25.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jul 2020 13:25:37 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 77D372A3D8D; Wed, 1 Jul 2020 16:25:35 -0400 (-04) Date: Wed, 1 Jul 2020 16:25:35 -0400 From: Alvaro Herrera To: Bruce Momjian Cc: David Steele , Fujii Masao , pgsql-hackers@postgresql.org Subject: Re: max_slot_wal_keep_size and wal_keep_segments Message-ID: <20200701202535.GA26854@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200701194508.GA14470@momjian.us> 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, Bruce Momjian wrote: > We have the following wal*size GUC settings: > > SELECT name FROM pg_settings WHERE name LIKE '%wal%size%'; > name > ------------------------ > max_slot_wal_keep_size > max_wal_size > min_wal_size > wal_block_size > wal_segment_size > > Does wal_keep_size make sense here? I think it does. What do you think? Are you suggesting that "keep_wal_size" is better, since it's more in line with min/max? I lean towards no. (I think it's okay to conceptually separate these three options from wal_block_size, since that's a compile time option and thus it's an introspective GUC rather than actual configuration, but as I recall that argument does not hold for wal_segment_size. But at one point, even that one was an introspective GUC too.) -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services