Re: Improving compressibility of WAL files

From: Richard Huxton <dev(at)archonet(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Greg Smith <gsmith(at)gregsmith(dot)com>, Hannu Krosing <hannu(at)krosing(dot)net>, Aidan Van Dyk <aidan(at)highrise(dot)ca>, Kyle Cordes <kyle(at)kylecordes(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Improving compressibility of WAL files
Date: 2009-01-09 17:19:17
Message-ID: 49678715.9020602@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Tom Lane wrote:
> "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
>> Greg Smith <gsmith(at)gregsmith(dot)com> wrote:
>>> I thought at one point that the direction this was going toward was to
>>> provide the size of the WAL file as a parameter you can use in the
>>> archive_command:
>
>> Hard to beat for performance. I thought there was some technical
>> snag.
>
> Yeah: the archiver process doesn't have that information available.

Am I being really dim here - why isn't the first record in the WAL file
a fixed-length record containing e.g. txid_start, time_start, txid_end,
time_end, length? Write it once when you start using the file and once
when it's finished.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma 2009-01-09 17:24:06 Re: Seeking PG Booth Volunteers for 2009 SCALE
Previous Message Richard Broersma 2009-01-09 17:05:33 Seeking PG Booth Voleenteers for 2009 SCALE

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2009-01-09 17:25:50 Re: Visibility map and freezing
Previous Message Andrew Dunstan 2009-01-09 17:16:09 Re: foreign_data test fails with non-C locale