Re: WAL oddities (8.0.3)

Lists: pgsql-hackers
From: Rod Taylor <pg(at)rbt(dot)ca>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: WAL oddities (8.0.3)
Date: 2005-06-30 16:10:43
Message-ID: 1120147843.86404.133.camel@home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

First, are WAL files not allowed to end in FF?

I was looking at the logs and it jumps straight from
0000000100000194000000FE to 000000010000019500000000.

Yet other times it seems to end in an F: 0000000100000194000000EF.

Second, we have log archival enabled and the system it was archiving to
was unavailable. Once that system was brought back, everything resumed
appropriately and the files were copied over.

However, now I'm left with a pg_xlog directory that is about 7 GB in
size. All of the files but the most recent has a corresponding
archive_status/$FILE.done file. Will PostgreSQL eventually remove most
of these unnecessary files or am I stuck with them?

--


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rod Taylor <pg(at)rbt(dot)ca>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: WAL oddities (8.0.3)
Date: 2005-06-30 21:06:22
Message-ID: 21640.1120165582@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Rod Taylor <pg(at)rbt(dot)ca> writes:
> First, are WAL files not allowed to end in FF?

I recall that there's some wastage of addressing space, but I don't
recall the exact reasoning. You can probably find a comment about it
in xlog.c or nearby.

> However, now I'm left with a pg_xlog directory that is about 7 GB in
> size. All of the files but the most recent has a corresponding
> archive_status/$FILE.done file. Will PostgreSQL eventually remove most
> of these unnecessary files or am I stuck with them?

I'd have thought the next checkpoint would zap 'em.

regards, tom lane


From: Rod Taylor <pg(at)rbt(dot)ca>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: WAL oddities (8.0.3)
Date: 2005-06-30 21:19:33
Message-ID: 1120166373.86404.189.camel@home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

> > However, now I'm left with a pg_xlog directory that is about 7 GB in
> > size. All of the files but the most recent has a corresponding
> > archive_status/$FILE.done file. Will PostgreSQL eventually remove most
> > of these unnecessary files or am I stuck with them?
>
> I'd have thought the next checkpoint would zap 'em.

I waited about an hour before sending this, but I guess a checkpoint
hadn't yet run.

It has been reduced quite a bit since then.

--