Обсуждение: monitoring free space map usage without VACUUM

Поиск
Список
Период
Сортировка

monitoring free space map usage without VACUUM

От
"Peter Koczan"
Дата:
Hi all,

I'm looking into adding things to the way I monitor pgsql
installations. One of them was free space map stuff. Is there a way to
get free space information (especially used free space) without having
to screen-scrape the output of VACUUM VERBOSE? I know you can get the
allocated fsm pages from "show max_fsm_pages", but I'd like something
along the lines of "show needed_fsm_pages". Is there anything that can
do this? i don't care if the data is a little stale, I'd just like to
have a rough picture of free space map settings and usage.

Peter

Re: monitoring free space map usage without VACUUM

От
Tom Lane
Дата:
"Peter Koczan" <pjkoczan@gmail.com> writes:
> I'm looking into adding things to the way I monitor pgsql
> installations. One of them was free space map stuff. Is there a way to
> get free space information (especially used free space) without having
> to screen-scrape the output of VACUUM VERBOSE?

In 8.2 there's a contrib/pg_freespacemap module that would help.

            regards, tom lane