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

Yes this change is the result of the above complaint.

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

If I understand your point correctly, as all blocks are compressed, adding
compression attribute to XLogRecord surely makes more sense if the record
contains backup blocks . But in case of XLOG records without backup blocks
the compression attribute in record header might not make much sense.

Attaching the status of compression to XLogRecord will mean that the status
is duplicated across all records. It will mean that it is an attribute of
all the records when it is only an attribute of records with backup blocks
or the attribute of backup blocks. 
The current approach is adopted with this thought.

Rahila Syed

View this message in context: 
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:

Reply via email to