+/* Compress the assembled record; NULL if that did not pay off */ +static XLogRecData * +XLogCompressRdt(XLogRecData *rdt)
That doesn't seem to be the case, it only returns NULL on compression error, incompressible records can get slightly larger with compression? Waldump statistics show decompressed totals, is that expected? Shouldn't we somehow be able to see compressed statistics, maybe ratios? While running I can also see numbers like the following with pg_stat_wal wal_bytes 10 677 687 wal_fpi_bytes 90 204 188 Which seems wrong, as wal_fpi_bytes should be always smaller than wal_bytes?
