Lists: | Postg윈 토토SQL |
---|
From: | "Chris Hoover" <revoohc(at)gmail(dot)com> |
---|---|
To: | "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | free space map |
Date: | 2006-06-20 14:44:42 |
Message-ID: | 1d219a6f0606200744y40714eb5sec53ed5aba3693cc@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg윈 토토SQL |
Is there anyway to query the free space map and see how many entries there
are for a specific table?
We are starting to have some performance issues since our upgrade to
8.1(running
8.1.3). However I can vacuum one table and the issues are temporarily
solved. I am trying to do some research and would like to know what the fsm
looks like before and after I vacuum this table.
Is this possible?
Thanks,
Chris
RH 4
PG 8.1.3
From: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
---|---|
To: | Chris Hoover <revoohc(at)gmail(dot)com> |
Cc: | "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: free space map |
Date: | 2006-06-20 15:09:46 |
Message-ID: | 20060620150946.GN26882@surnet.cl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-admin |
Chris Hoover wrote:
> Is there anyway to query the free space map and see how many entries there
> are for a specific table?
>
> We are starting to have some performance issues since our upgrade to
> 8.1(running
> 8.1.3). However I can vacuum one table and the issues are temporarily
> solved. I am trying to do some research and would like to know what the fsm
> looks like before and after I vacuum this table.
In CVS HEAD there is a pg_freespacemap contrib module that may do what
you need. You'd have to "backport" it to 8.1 though; it doesn't compile
as-is.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Alvaro Herrera <alvherre(at)commandprompt(dot)com> |
Cc: | Chris Hoover <revoohc(at)gmail(dot)com>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: free space map |
Date: | 2006-06-20 15:32:57 |
Message-ID: | 2389.1150817577@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-admin |
Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> In CVS HEAD there is a pg_freespacemap contrib module that may do what
> you need. You'd have to "backport" it to 8.1 though; it doesn't compile
> as-is.
Looking at the CVS history, I think the main point is that freespace.c
did not formerly expose its internal data structures; the patch moved a
lot of declarations into freespace.h so that the contrib code could get
at them. You'd need to modify the 8.1 sources, but not by much.
regards, tom lane