#######PostgreSQL Performance Tuning
ee postgresql.conf
Code:
----------------------------------------------------
hba_file = 'pg_hba.conf' # host-based authentication file
listen_addresses = '*'
----------------------------------------------------
shared_buffers
->Used to hold query results that are in progress.
->5%-10% of system physical memory
->Reasonably 25% [Not really true]
effective_cache_size
->Indicates the query optimizer how much OS filesystem cache expected to have.
->Might be all physical memory or 80% above for solely running servers.
->Set to a value of mem which will always available for PostgreSQL
->Larger = More likely to use index
->50% of total memory would be a normal conservative setting.
work_mem
->Memory sorting, for ALL users, and ALL sorting queries
->Could be really large, careful. Because this is per sort, per connection.
->50MB would be ok
->2%-4% of system physical memory
Lastly, try this -> (
http://pgfoundry.org/projects/pgtune/)