Re: pgstattuple: fix free space calculation - Mailing list pgsql-hackers

From Andreas Karlsson
Subject Re: pgstattuple: fix free space calculation
Date
Msg-id e61330ee-012f-4fb3-85b0-b47a15f5dce4@proxel.se
Whole thread Raw
In response to Re: pgstattuple: fix free space calculation  (Rafia Sabih <rafia.pghackers@gmail.com>)
List pgsql-hackers
On 8/29/24 4:53 PM, Frédéric Yhuel wrote:
> So I think we should just use PageGetExactFreeSpace().

I agree, I feel that is the least surprising behavior because we 
currently sum tiny amounts of free space that is unusable anyway. E.g. 
imagine one million pages with 10 free bytes each, that looks like 10 
free MB so I do not see why we should treat the max tuples per page case 
with any special logic.

Andreas



pgsql-hackers by date:

Previous
From: Bertrand Drouvot
Date:
Subject: Re: Add contrib/pg_logicalsnapinspect
Next
From: Andreas Karlsson
Date:
Subject: Re: JIT: Remove some unnecessary instructions.