Re: [REVIEW] Re: Compression of full-page-writes

From: Amit Langote <amitlangote09(at)gmail(dot)com>
To: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Cc: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, Rahila Syed <rahilasyed90(at)gmail(dot)com>, Rahila Syed <rahilasyed(dot)90(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [REVIEW] Re: Compression of full-page-writes
Date: 2014-11-11 08:18:01
Message-ID: CA+HiwqEuq6CMot5zR2Gma4cwSXAthy-cXO6fdS6mF=KVS9fTcw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Nov 11, 2014 at 5:10 PM, Michael Paquier
<michael(dot)paquier(at)gmail(dot)com> wrote:
> On Mon, Nov 10, 2014 at 5:26 PM, Michael Paquier
> <michael(dot)paquier(at)gmail(dot)com> wrote:
>> I'll go through the patch once again a bit later, but feel free to comment.
> Reading again the patch with a fresher mind, I am not sure if the
> current approach taken is really the best one. What the patch does now
> is looking at the header of the first backup block, and then
> compresses the rest, aka the other blocks, up to 4, and their headers,
> up to 3. I think that we should instead define an extra bool flag in
> XLogRecord to determine if the record is compressed, and then use this
> information. Attaching the compression status to XLogRecord is more
> in-line with the fact that all the blocks are compressed, and not each
> one individually, so we basically now duplicate an identical flag
> value in all the backup block headers, which is a waste IMO.
> Thoughts?

I think this was changed based on following, if I am not wrong.

http://www.postgresql.org/message-id/54297A45.8080904@vmware.com

Regards,
Amit

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2014-11-11 08:29:48 Re: using custom scan nodes to prototype parallel sequential scan
Previous Message Greg Stark 2014-11-11 08:14:20 Re: BRIN indexes - TRAP: BadArgument