pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
free space map
3+ messages / 3 participants
[nested] [flat]

* free space map
@ 2006-06-20 14:44 Chris Hoover <revoohc@gmail.com>
  2006-06-20 15:09 ` Re: free space map Alvaro Herrera <alvherre@commandprompt.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Chris Hoover @ 2006-06-20 14:44 UTC (permalink / raw)
  To: pgsql-admin

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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: free space map
  2006-06-20 14:44 free space map Chris Hoover <revoohc@gmail.com>
@ 2006-06-20 15:09 ` Alvaro Herrera <alvherre@commandprompt.com>
  2006-06-20 15:32   ` Re: free space map Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: Alvaro Herrera @ 2006-06-20 15:09 UTC (permalink / raw)
  To: Chris Hoover <revoohc@gmail.com>; +Cc: 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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: free space map
  2006-06-20 14:44 free space map Chris Hoover <revoohc@gmail.com>
  2006-06-20 15:09 ` Re: free space map Alvaro Herrera <alvherre@commandprompt.com>
@ 2006-06-20 15:32   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2006-06-20 15:32 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@commandprompt.com>; +Cc: Chris Hoover <revoohc@gmail.com>; pgsql-admin

Alvaro Herrera <alvherre@commandprompt.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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2006-06-20 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-20 14:44 free space map Chris Hoover <revoohc@gmail.com>
2006-06-20 15:09 ` Alvaro Herrera <alvherre@commandprompt.com>
2006-06-20 15:32   ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox