Re: How to improve Postgres performance

From: Dennis Bjorklund <db(at)zigo(dot)dhs(dot)org>
To: Hemant Pandey <hemant(dot)pandey(at)flextronicssoftware(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: How to improve Postgres performance
Date: 2005-08-30 06:04:35
Message-ID: Pine.LNX.4.44.0508300800020.2995-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Tue, 30 Aug 2005, Hemant Pandey wrote:

> So please tell me how can i improve database performance through
> configuration parameters. I had tried to change parameters in
> postgresql.conf file but of no avail.
> Now i am trying to Auto Vacuum, but don't know how to run Auto Vacuum.

The most important part is that you need to run VACUUM ANALYZE regulary.
Vacuum can be started each night in a cron job, started from pg_autovacuum
when it thinks it's needed, or started in some other way. In any case, it
has to be run whenever the data in the database have changed enough.

The parameters in the config that is most important in my experience is
effective_cache_size and shared_buffers.

This is a text I like (it's for pg 7.4 but still useful):

http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html

--
/Dennis Björklund

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message William Yu 2005-08-30 07:05:15 Re: shared buffers
Previous Message Hemant Pandey 2005-08-30 04:35:02 How to improve Postgres performance