pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jerry Sievers <jerry.sievers@comcast.net>
To: M Kiesewetter <mskiesewetter@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Question about pg_xlog
Date: Tue, 18 Apr 2017 10:05:23 -0500
Message-ID: <87tw5lpxho.fsf@jsievers.enova.com> (raw)
In-Reply-To: <CANBd27KCApuRST0smXH6f0MhOz=c8FiKtj5bVnWyiYzeD8wvhQ@mail.gmail.com>
References: <CANBd27KCApuRST0smXH6f0MhOz=c8FiKtj5bVnWyiYzeD8wvhQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

M Kiesewetter <mskiesewetter@gmail.com> writes:

> Hi everyone,
>
> I'm new to Postgresql and have a test environment with Postgresql
> 9.4.5 running on Linux.
> Today I noticed that the pg_xlog was filled up to 18 Gb.
> I have: 
> - wal_level=hot_standby 
> - wal_keep_segments = 100
> - hot_standby = on
> archive_mode = on
>
> It's a test environment en I did a pg_resetxlogs() on the 6th of
> April.
> I know that I shouldn't use this, and that it's only a last resort.
> When I look in de pg_xlog directory I see xlog files that are kept
> sinds that time.
> When i look at the archive_status directory I see that all of the
> files have the suffix of .done.
> All the other xlogs from the time before the resetlogs are cleaned up
> as I expected.
> But I don't understand why the other xlogs aren't recycled.

I'd start by looking for dormant replication slots.

select * from pg_replication_slots;

HTH

> I am looking for ways to find out why my pg_xlog is filling up.
> - I checked the alertlog of the postgresql instance --> no errors
> - I checked the WAL file location to see if the xlogs are being
> archived --> they are present
>
> Are there more ways to find out why my pg_xlog is filling up?
> Is the pg_resetxlogs the reason why the older xlogs are not recycled?
>
> I Hope that someone can help me.
> Thanks in advance.
> Regards,
> Mariane
>
>
>

-- 
Jerry Sievers
e: jerry.sievers@comcast.net
p: 312.241.7800


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (3+ messages)  latest in thread

Message-ID: <87tw5lpxho.fsf@jsievers.enova.com>
Permalink:  ../87tw5lpxho.fsf@jsievers.enova.com/
Also on:    postgresql.org/message-id/87tw5lpxho.fsf@jsievers.enova.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: jerry.sievers@comcast.net, mskiesewetter@gmail.com
  Subject: Re: Question about pg_xlog
  In-Reply-To: <87tw5lpxho.fsf@jsievers.enova.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