From: Pallav Kalva <pkalva@deg.cc>
To: Frank Wiles <frank@wiles.org>
Cc: pgsql-performance@postgresql.org
Subject: Re: Poor Performance on a table
Date: Thu, 02 Dec 2004 14:32:53 -0500
Message-ID: <41AF6DE5.8020301@deg.cc> (raw)
In-Reply-To: <20041202132014.27456058.frank@wiles.org>
References: <41AF68F2.1050206@deg.cc>
<20041202132014.27456058.frank@wiles.org>
Hi Frank,
Thanks! for the quick reply, here are my current default fsm setting .
max_fsm_pages = 20000 and max_fsm_relations = 1000
What are the appropriates settings for these parameters ? are there
any guidlines ? postgres docs doesnt give much information on setting
these values.
Thanks!
Pallav
Frank Wiles wrote:
>On Thu, 02 Dec 2004 14:11:46 -0500
>Pallav Kalva <pkalva@deg.cc> wrote:
>
>
>
>>Hi ,
>>
>> I have a table in my production database which has 500k rows and
>>from the pg_class it shows the number of "relpages" of
>>around 750K for this table, the same table copied to a test database
>>shows "relpages" as 35k. I run vacuumdb on the whole
>>database (not on the table individually but the whole database) daily.
>>
>>I think because of this most of queries are slowing down which used to
>>
>>run much faster before.
>> Is there any way to fix this problem ?
>>
>>
>
> Try a VACUUM FULL, this will clean up unused space. You might also
> want to adjust your free space map so that you don't have to do FULL
> vacuums as often ( or at all ). It is controlled by max_fsm_pages
> and max_fsm_relations.
>
> ---------------------------------
> Frank Wiles <frank@wiles.org>
> http://www.wiles.org
> ---------------------------------
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: pkalva@deg.cc, frank@wiles.org
Subject: Re: Poor Performance on a table
In-Reply-To: <41AF6DE5.8020301@deg.cc>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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