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 1itwhl-00055g-N2 for pgsql-general@arkaria.postgresql.org; Tue, 21 Jan 2020 16:48:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1itwhk-0005xW-9U for pgsql-general@arkaria.postgresql.org; Tue, 21 Jan 2020 16:48:40 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1itwh1-0000dL-Vq for pgsql-general@lists.postgresql.org; Tue, 21 Jan 2020 16:47:56 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1itwgv-0006sE-PD for pgsql-general@lists.postgresql.org; Tue, 21 Jan 2020 16:47:54 +0000 Received: by mail-wm1-x32f.google.com with SMTP id u2so3885376wmc.3 for ; Tue, 21 Jan 2020 08:47:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=KCJTOfGdD8sCEWqOpITvVnI/7Attp2ZTA4xclsahZQE=; b=zpR1RTnSABQyNihrL0joxLhuzLFezRrRo6Zo+Bj9WAcQR6Ub6wA2fE2niq7623a4z9 sR1scYkB+deEc2HwzQCEtrHQpnRPk8GsXsuk4I6TerSbX84N4ULhKSMaPJsZ3L9+xMKk Zt8mEnDYZ+R5z4Y2q2qbbaDLcWHwgAn/OGa7cdFDGmkQlCfMjzxnbw4TnwDAq88EuwI4 SRI/LUfvLQqeh2/875vYwUyBxZ7Z6+Dy8sHYpAxHR3Y6Urj+jEi7gYTWnCMTzUqLoewM vP3SdEU9n4C6iorNUUf+cE6+AhjHwqUUJWnc6BHLluZkZoySXrtZyGQsA+lzSdicDIbx je3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=KCJTOfGdD8sCEWqOpITvVnI/7Attp2ZTA4xclsahZQE=; b=KtKchXGFmHjKvOEL1j88nPF6PA0E1Ei/0PwAfWtg1W02nfPMsOwDvKrdgDY2cjNgq7 GfbgWkSqGutoXFkpGwVgnQQlLIMfN7N9UYDRAqVY/YrMZd3WNwSadr5WwlvU/vRXJCsM DiqArkPN4/2FoTatP73o5nWXOnnvQq2PJTJYfYdvdHlsf3IhOVL/PKhFJD+ulq/GaIL6 jT31zG5EDaOuaXYKuqVAYk9L4kJqfze5EOKlcjtI3qnSUsySsC0rhcWVAsJ4hERj130o 4jibyRzpIKx+Ld7olUWoC05x+CbX2NFYZA3SpJ0Ajw+jsuJlgFncmKkaM8Wp5F5H4Bt5 IlDA== X-Gm-Message-State: APjAAAXbN5F+olj2K1uWJA3zaHjerMUTVqnoSuyvTfMCNs3pSf9+WBLn D8yItM4a9YERfUVr3Jfb2FzfXA== X-Google-Smtp-Source: APXvYqxT/9ZmFCT9xppmtTmDUaNCahWh92+xK4yBZcvBicoW3utk13YWxf6aFRXJ6+59COjMHXUVgQ== X-Received: by 2002:a1c:628b:: with SMTP id w133mr5215299wmb.25.1579625267669; Tue, 21 Jan 2020 08:47:47 -0800 (PST) Received: from localhost.localdomain ([212.186.219.234]) by smtp.gmail.com with ESMTPSA id k8sm52543072wrl.3.2020.01.21.08.47.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jan 2020 08:47:47 -0800 (PST) Message-ID: <906c97b626f5252bd19af543dafbe2e40ed5d451.camel@cybertec.at> Subject: Re: Questions about how to streaming replication (pg 9.2) From: Laurenz Albe To: Ekaterina Amez , pgsql-general@lists.postgresql.org Date: Tue, 21 Jan 2020 17:47:46 +0100 In-Reply-To: References: <78be5263a8ec9822402a3b875ff774eac2a5b010.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, 2020-01-21 at 11:18 +0100, Ekaterina Amez wrote: [about wal_keep_segments] > I'm not sure how to figure this value . Of course I could use a big > value and forget, but as the server is running out of space I'd like to > adjust it so there is (almost) no waste of space. This is why I began to > think about wal archiving, though it seems a bit more complicated. See how many WAL files are generated in a day. If you set wal_keep_segments to that value, the standby will be able to survive a down time of a day. If you don't need to cater for that much down time, use a smaller value. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com