Re: Reducing size of WAL record headers - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Reducing size of WAL record headers
Date
Msg-id 3413.1357769209@sss.pgh.pa.us
Whole thread Raw
In response to Reducing size of WAL record headers  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Reducing size of WAL record headers
List pgsql-hackers
Simon Riggs <simon@2ndQuadrant.com> writes:
> Overall, the WAL record is MAXALIGN'd, so with 8 byte alignment we
> waste 4 bytes per record. Or put another way, if we could reduce
> record header by 4 bytes, we would actually reduce it by 8 bytes per
> record. So looking for ways to do that seems like a good idea.

I think this is extremely premature, in view of the ongoing discussions
about shoehorning logical replication and other kinds of data into the
WAL stream.  It seems quite likely that we'll end up eating some of
that padding space to support those features.  So whacking a lot of code
around in service of squeezing the existing padding out could very
easily end up being wasted work, in fact counterproductive if it
degrades either code readability or robustness.

Let's wait till we see where the logical rep stuff ends up before we
worry about saving 4 bytes per WAL record.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Index build temp files
Next
From: Tom Lane
Date:
Subject: Re: Index build temp files