pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Scalia <jayknowsunix@gmail.com>
To: Matheus de Oliveira <matioli.matheus@gmail.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: WAL segment management on a standby
Date: Fri, 11 Jul 2014 13:56:16 -0400
Message-ID: <53C02540.4000107@gmail.com> (raw)
In-Reply-To: <CAJghg4LwTAGDHhFA-=dNHM8_HxDhybyr1LiST7+hFu7xdo=E8w@mail.gmail.com>
References: <53C015AA.5070908@gmail.com>
	<CAJghg4LwTAGDHhFA-=dNHM8_HxDhybyr1LiST7+hFu7xdo=E8w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Thanks Matheus,

What I guess I'm more than curious about is as this is one of two standbys and I could always rebuild it again from either of the other two machines, is what am I risking if delete 
everything except maybe the last handful of WAL segments? When I start the database, I usually only see one or maybe two references to WAL segments being used to sync up. And being 
that the standby streams anyway, I'm not all that concerned if another pg_basebackup has to run to rebuild the standby. I only want it to start cleanly in the event of a stoppage. 
Which almost never happens anyway.
--
Jay

On 7/11/2014 12:58 PM, Matheus de Oliveira wrote:
>
> On Fri, Jul 11, 2014 at 1:49 PM, John Scalia <jayknowsunix@gmail.com <mailto:jayknowsunix@gmail.com>> wrote:
>
>     00000000300000000C000000A1
>     00000000300000000C000000A2
>     00000000300000000C000000A3
>     00000000300000000C000000A3.backup
>     00000000300000000C000000A4
>
>     Could I safely delete the *A1, *A2, and maybe even the *A3 files?
>
>
> If you only care to storing files needed for backup made at 00000000300000000C000000A3, you can remove 00000000300000000C000000A1 and 00000000300000000C000000A2, but not the others.
>
> Regards,
> -- 
> Matheus de Oliveira
> Analista de Banco de Dados
> Dextra Sistemas - MPS.Br nĂ­vel F!
> www.dextra.com.br/postgres <http://www.dextra.com.br/postgres/;
>

view thread (6+ messages)  latest in thread

Message-ID: <53C02540.4000107@gmail.com>
Permalink:  ../53C02540.4000107@gmail.com/
Also on:    postgresql.org/message-id/53C02540.4000107@gmail.com

 · 

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: jayknowsunix@gmail.com, matioli.matheus@gmail.com
  Subject: Re: WAL segment management on a standby
  In-Reply-To: <53C02540.4000107@gmail.com>

* 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