Re: standby not cleaning up WAL files often enough

From: Jeff Frost <jeff(at)pgexperts(dot)com>
To: Jorge Torralba <jorge(dot)torralba(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: standby not cleaning up WAL files often enough
Date: 2015-04-23 00:23:45
Message-ID: F05A2C84-38CF-44E8-9AFC-FFB3E429E5E6@pgexperts.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Like I mentioned before, it’s the *replica* not the primary. I.e. it’s not archiving. There are no cascaded replicas getting their WAL stream from it either.

postgres=# show wal_keep_segments ;
wal_keep_segments
-------------------
0
(1 row)

> On Apr 22, 2015, at 5:08 PM, Jorge Torralba <jorge(dot)torralba(at)gmail(dot)com> wrote:
>
> More of statng the obvious here :)
>
> Make sure your archive directory is mounted or accessible from the DB server.
>
> Check your wal_keep_segments. I cant imagine them being 3000 but you never know.
>
> are you running synchronous or asynchronous replication?
>
> JT
>
> On Wed, Apr 22, 2015 at 5:02 PM, Jeff Frost <jeff(at)pgexperts(dot)com <mailto:jeff(at)pgexperts(dot)com>> wrote:
> It’s a good question, but I’m actually not talking about the WAL files in the archive (those are on S3), I’m talking about the WAL files in the pg_xlog directory.
>
> > On Apr 22, 2015, at 5:00 PM, Jorge Torralba <jorge(dot)torralba(at)gmail(dot)com <mailto:jorge(dot)torralba(at)gmail(dot)com>> wrote:
> >
> > Stupid question but it needs to be asked.
> >
> > Do you have this in your recovery.conf file ?
> >
> > archive_cleanup_command = 'pg_archivecleanup path to archived files %r’
>
>
>
>
> --
> Thanks,
>
> Jorge Torralba
> ----------------------------
>
> Note: This communication may contain privileged or other confidential information. If you are not the intended recipient, please do not print, copy, retransmit, disseminate or otherwise use the information. Please indicate to the sender that you have received this email in error and delete the copy you received. Thank You.

---
Jeff Frost <jeff(at)pgexperts(dot)com>
CTO, PostgreSQL Experts, Inc.
Phone: 1-888-PG-EXPRT x506
FAX: 415-762-5122
http://www.pgexperts.com/

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Holger.Friedrich-Fa-Trivadis 2015-04-24 13:19:53 Re: server doesn't listen postgresql 9.1 after service change
Previous Message Jorge Torralba 2015-04-23 00:10:12 Re: standby not cleaning up WAL files often enough