| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
| Subject: | Re: [HACKERS] Should *.backup files ever be removed from pg_xlog? |
| Date: | 2005-06-09 04:16:15 |
| Message-ID: | 200506090416.j594GFU06425@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
Tom Lane wrote:
> Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > I have fixed the code to properly remove *.backup files from the
> > /pg_xlog directory once they are archived.
>
> I do not actually think that this is a good idea. The .backup files are
> not large and they are pretty critical info --- so having multiple
> copies of them seems like a good idea. We don't auto-remove timeline
> history files either, for the same reason.
I realize the files are small, but the number of entries in the
directory might get pretty large. I am also worried about folks
realizing we are not cleaning out those directories and mucking in there
when they shouldn't --- I already got a private email asking why there
are so many files in there and can they be cleared out. In fact, the
archive_status/ directory also keeps *.done files for the backup files.
We knowe we have archived the *.backup files. Are these files any use
if we can't get the archive files restored?
OK, how about if we do this cleanup when we do pg_stop_backup() so we
delete any previous *.backup files, rather than do it as part of
checkpoint.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2005-06-09 04:38:55 | Re: autovacuum in backend? |
| Previous Message | Josh Berkus | 2005-06-09 04:15:49 | Re: The Contrib Roundup (long) |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Neil Conway | 2005-06-09 04:31:18 | Re: final light versions of Oracle compatibility (SQLSTATE, GREATEST, |
| Previous Message | Tom Lane | 2005-06-09 03:58:20 | Re: [HACKERS] Should *.backup files ever be removed from pg_xlog? |