Re: PITR: XLog File compression on Archive

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
Cc: Simon Riggs <simon(at)2ndquadrant(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PITR: XLog File compression on Archive
Date: 2004-08-23 21:57:36
Message-ID: 200408232157.i7NLvar13521@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera wrote:
> On Mon, Aug 23, 2004 at 10:03:26PM +0100, Simon Riggs wrote:
>
> Simon,
>
> > I raise this now because I'm thinking that this functionality really ought
> > to be in the main production 8.0 release. Not sure if anybody will
> > agree....but that's what I'm thinking now, based upon what seems like a
> > simple design to put it there. My rationale is that it will be simpler to
> > support one file format than two, if we introduce the change at a later
> > time.
>
> Why do you talk about another file format? AFAIU it's the same format,
> only the archived files will lack the page images. Maybe I'm missing
> something?
>
> Anyway I think we are way past feature freeze, and XLog "compression"
> could made it into 8.1 without loss of functionality. At that point we
> will say "now PITR uses less space on the archiver" and that's it.
>
> (Maybe we could even think about LZ-compressing the remaining WAL
> entries on the archived logs?)

Agreed. I added a mention of it in the TODO list:

* Eliminate need to write full pages to WAL before page modification

Currently, to protect against partial disk page writes, we write the
full page images to WAL before they are modified so we can correct any
partial page writes during recovery. These pages can also be
eliminated from point-in-time archive files.

--
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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Gaetano Mendola 2004-08-23 22:05:33 Re: PITR: XLog File compression on Archive
Previous Message Alvaro Herrera 2004-08-23 21:53:08 Re: PITR: XLog File compression on Archive