Re: The black art of postgresql.conf tweaking

From: Shridhar Daithankar <shridhar(at)frodo(dot)hserus(dot)net>
To: Paul Serby <paul(dot)serby(at)clockltd(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: The black art of postgresql.conf tweaking
Date: 2004-08-09 14:46:47
Message-ID: 200408092016.47304.shridhar@frodo.hserus.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Monday 09 Aug 2004 7:58 pm, Paul Serby wrote:
> I've not maxed out the connections since making the changes, but I'm
> still not convinced everything is running as well as it could be. I've
> got some big result sets that need sorting and I'm sure I could spare a
> bit more sort memory.

You could set the sort mem for that connection before issuing the query.

i.e.

# set sort_mem=20000;
# select * ....;

And reset it back. Setting it globally is not that good. If you do it
selectively, that would tune it as per your needs..

> Where does everyone get there information about the settings? I still
> can't find anything that helps explain each of the settings and how you
> determine there optimal settings.

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

HTH

Shridhar

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Merlin Moncure 2004-08-09 15:29:57 tablespaces and ramdisks
Previous Message Paul Serby 2004-08-09 14:28:01 Re: The black art of postgresql.conf tweaking