pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: ghiureai <isabella.ghiurea@nrc-cnrc.gc.ca>
To: pgsql-admin@lists.postgresql.org
Subject: Re: PG 10 streaming replication pg_wal question
Date: Thu, 30 Nov 2017 09:41:33 -0800
Message-ID: <5A2042CD.3090006@nrc-cnrc.gc.ca> (raw)
In-Reply-To: <1512063321.2328.20.camel@cybertec.at>
References: <5A203DC7.40509@nrc-cnrc.gc.ca>
	<1512063321.2328.20.camel@cybertec.at>


Thank you Laurenz,
can I  run a checkpoint manually in master host than ?


  On 11/30/2017 09:35 AM, Laurenz Albe wrote:
> ghiureai wrote:
>> I am testing PG10 streaming replication ,  with archiving off, I have
>> pg_wal on separate directory  to monitor the growth , I had the slave
>> offline yesterday  for  more than 20h while I was restoring one of db
>> (60GB) with pg_restore from a backup taken with pg_dump, today I brought
>> the slave PG host online and replication catch up  nicely , master and
>> slave are in sync now, but  on master host the pg_wal is still same
>> large size ( as yesterday)  even after all the wal files had been
>> applied to salve, would replication process not suppose to removed the
>> wal files  on master after being applied to salve ?
>> ( do I need to manually implement a cleanup job of this wal files, as
>> mentioned archiving is off on  both servers)
> Never remove WAL files yourself.
>
> pg_wal will shrink eventually.
> At the next checkpoint, PostgreSQL will remove all WAL files
> that were completed and archived successfully since the
> previous checkpoint, thus reducing WAL size a little.
>
> If there is activity on the databases, pg_wal will eventually
> shrink back to max_wal_size.
>
> Yours,
> Laurenz Albe
>





view thread (5+ messages)  latest in thread

Message-ID: <5A2042CD.3090006@nrc-cnrc.gc.ca>
Permalink:  ../5A2042CD.3090006@nrc-cnrc.gc.ca/
Also on:    postgresql.org/message-id/5A2042CD.3090006@nrc-cnrc.gc.ca

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: isabella.ghiurea@nrc-cnrc.gc.ca, pgsql-admin@lists.postgresql.org
  Subject: Re: PG 10 streaming replication pg_wal question
  In-Reply-To: <5A2042CD.3090006@nrc-cnrc.gc.ca>

* 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