fsm and vacuum

From: "Little, Douglas" <DOUGLAS(dot)LITTLE(at)orbitz(dot)com>
To: "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org>
Subject: fsm and vacuum
Date: 2010-12-02 21:00:55
Message-ID: 8585BA53443004458E0BAA6134C5A7FB47D635C9@EGEXCMB01.oww.root.lcl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

We're new to Greenplum, based on PG (8.2.13). we weren't advised to increase the max_fsm_relations switch as our db has grown.
Currently we're nearly 14k tables/indexes and the switch is set to 1000.
We've got it updated now, but wondering about the effect & recovery.

We've regularly been reloading tables with CTAS.
I've done some experiments and want to confirm my understanding.

1. Vacuum full only compacted the oldest? tables (reducing pages from 109 to 5)
2. vacuum full frees pages, but doesn't reduce the file size (newer tables). Table needed to be recreated to reduce size

I've searched the archives and haven't found what I'm looking for. I hope someone would just dash off a simple explanation.

1. when are relations added to the fsm? (at create, or some other time)
2. will vacuum (full) add a relation to the fsm - ?
3. if bloated table is vacuum full'd, will the free space pages be use?

My assumptions are:
1. relation added to fsm list at create time.
2. fsm_pages keep track of free space for the relations being tracked in the fsm_relation list
3. table recreate is the only way to have a relation tracked.

Thanks in advance.

Doug Little

Sr. Data Warehouse Architect | Enterprise Data Management | Orbitz Worldwide
500 W. Madison, Suite 1000 Chicago IL 60661| Office 312.260.2588 | Fax 312.894.5164 | Cell 847-997-5741
Douglas(dot)Little(at)orbitz(dot)com<mailto:Douglas(dot)Little(at)orbitz(dot)com>
[cid:image001(dot)jpg(at)01CB922D(dot)0A2B3AE0] orbitz.com<http://www.orbitz.com/> | ebookers.com<http://www.ebookers.com/> | hotelclub.com<http://www.hotelclub.com/> | cheaptickets.com<http://www.cheaptickets.com/> | ratestogo.com<http://www.ratestogo.com/> | asiahotels.com<http://www.asiahotels.com/>

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Guillaume Lelarge 2010-12-02 21:54:18 Re: fsm and vacuum
Previous Message Duffey, Blake A. 2010-12-01 21:09:13 Re: Kerberos question