FSM fill ratio

Lists: pgsql-hackers
From: Jacques Caron <jc(at)oxado(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: FSM fill ratio
Date: 2008-04-25 23:27:45
Message-ID: 20080425232814.8884C120F00B@zeus.directinfos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Hi all,

Quick question: is there currently a way to see how many slot are
used in the FSM (i.e. how many free pages are stored there), or how
many are free? If not, wouldn't it be a good idea to add this
somewhere? (Don't quite know where... is it possible to have very
dynamic values in show xxx?) This would help a lot finding out
whether the current fsm settings are fine or not...

Thanks,

Jacques.


From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Jacques Caron <jc(at)oxado(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: FSM fill ratio
Date: 2008-04-26 13:50:45
Message-ID: 20080426135045.GG10366@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Jacques Caron wrote:
> Hi all,
>
> Quick question: is there currently a way to see how many slot are used in
> the FSM (i.e. how many free pages are stored there), or how many are
> free? If not, wouldn't it be a good idea to add this somewhere? (Don't
> quite know where... is it possible to have very dynamic values in show
> xxx?) This would help a lot finding out whether the current fsm settings
> are fine or not...

There's contrib/pg_freespacemap

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support