by nwmcsween · 5y ago · 0 comments
> ... multi-petabyte cluster of Postgres instances... blocksize relatively high at 64 kb ...
The dataset should be the Postgresql "page size" which IIRC is 8KB, the reasoning for this is RMW cycles will read 64kb modify 8KB and write out the full 64KB amplifying writes 8 fold.
Also IIRC Postgresql will automatically use TOAST when needed?
And yes - Postgres will automatically TOAST oversized tuples and compress the relevant data (if you configure it to do so). This is much lower impact for us than filesystem level compression, as it doesn't affect the main relation heap space (or any indexes).
16k record size 2x amplification and still (?) allows compression w/ lz4