Search Postgresql Archives

Re: When will old wal segments get removed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 08, 2011 at 02:21:08PM +0000, Thom Brown wrote:
> > $ ls -l pg_xlog/ | head
> > total 2620721
> > -rw-------  1 postgres postgres   249 Sep Â8 20:14 00000001000003DB0000003E.000061A8.backup
> > -rw------- Â 1 postgres postgres 16777216 Feb Â8 11:39 000000010000076D000000F7
> > -rw------- Â 1 postgres postgres 16777216 Feb Â8 11:40 000000010000076D000000F8
> > -rw------- Â 1 postgres postgres 16777216 Feb Â8 11:40 000000010000076D000000F9
> > -rw------- Â 1 postgres postgres 16777216 Feb Â8 11:40 000000010000076D000000FA
> > -rw------- Â 1 postgres postgres 16777216 Feb Â8 11:41 000000010000076D000000FB
> > -rw------- Â 1 postgres postgres 16777216 Feb Â8 11:42 000000010000076D000000FC
> > -rw------- Â 1 postgres postgres 16777216 Feb Â8 11:43 000000010000076D000000FD
> > -rw------- Â 1 postgres postgres 16777216 Feb Â8 11:44 000000010000076D000000FE
> >
> > they are archived:
> > $ ls -l pg_xlog/archive_status/ | head
> > total 179
> > -rw-------  1 postgres postgres    0 Sep Â8 20:14 00000001000003DB0000003E.000061A8.backup.done
> > -rw-------  1 postgres postgres    0 Feb Â8 11:39 000000010000076D000000F7.ready
> > -rw-------  1 postgres postgres    0 Feb Â8 11:40 000000010000076D000000F8.ready
> > -rw-------  1 postgres postgres    0 Feb Â8 11:40 000000010000076D000000F9.ready
> > -rw-------  1 postgres postgres    0 Feb Â8 11:40 000000010000076D000000FA.ready
> > -rw-------  1 postgres postgres    0 Feb Â8 11:41 000000010000076D000000FB.ready
> > -rw-------  1 postgres postgres    0 Feb Â8 11:42 000000010000076D000000FC.ready
> > -rw-------  1 postgres postgres    0 Feb Â8 11:43 000000010000076D000000FD.ready
> > -rw-------  1 postgres postgres    0 Feb Â8 11:44 000000010000076D000000FE.ready
> 
> Well normally those would get deleted automatically after archiving,
> but since you're suggesting the previous archive_command didn't return
> a zero exit status, that process wouldn't have happened.  If you're
> sure those are archived, can't you just go ahead and delete them
> manually?

right now archiving works, and was called for all older wal segments -
so we can see it in archive_status/.

I probably could remove them by hand, but I never feel ok to do stuff
like this manually, and what's more - i'd prefer to understand why these
are not getting removed.

Best regards,

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@xxxxxxxxxx / aim:depeszhdl / skype:depesz_hdl / gg:6749007

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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux