pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Ekaterina Amez <ekaterina.amez@zunibal.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Questions about how to streaming replication (pg 9.2)
Date: Tue, 21 Jan 2020 17:47:46 +0100
Message-ID: <906c97b626f5252bd19af543dafbe2e40ed5d451.camel@cybertec.at> (raw)
In-Reply-To: <e9db0334-5439-2df7-8363-9115013a9eb6@zunibal.com>
References: <a71c7da9-800b-663e-1949-2b801e031865@zunibal.com>
	<78be5263a8ec9822402a3b875ff774eac2a5b010.camel@cybertec.at>
	<e9db0334-5439-2df7-8363-9115013a9eb6@zunibal.com>

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






view thread (4+ messages)

Message-ID: <906c97b626f5252bd19af543dafbe2e40ed5d451.camel@cybertec.at>
Permalink:  ../906c97b626f5252bd19af543dafbe2e40ed5d451.camel@cybertec.at/
Also on:    postgresql.org/message-id/906c97b626f5252bd19af543dafbe2e40ed5d451.camel@cybertec.at

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, ekaterina.amez@zunibal.com
  Subject: Re: Questions about how to streaming replication (pg 9.2)
  In-Reply-To: <906c97b626f5252bd19af543dafbe2e40ed5d451.camel@cybertec.at>
  References: <a71c7da9-800b-663e-1949-2b801e031865@zunibal.com> <78be5263a8ec9822402a3b875ff774eac2a5b010.camel@cybertec.at> <e9db0334-5439-2df7-8363-9115013a9eb6@zunibal.com> <906c97b626f5252bd19af543dafbe2e40ed5d451.camel@cybertec.at>

* 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