Re: Performance tips - Mailing list pgsql-general

From Tom Lane
Subject Re: Performance tips
Date
Msg-id 21590.1010686927@sss.pgh.pa.us
Whole thread Raw
In response to Re: Performance tips  (Andrew Perrin <andrew_perrin@unc.edu>)
Responses Re: Performance tips  (Andrew Perrin <andrew_perrin@unc.edu>)
List pgsql-general
Andrew Perrin <andrew_perrin@unc.edu> writes:
> shared_buffers is set to 128 in postgresql.conf - is that what you
> mean?

That's awfully small.  On any modern machine you should be setting it in
the low thousands.  (Yeah, I know the default is only 64.  We've had
discussions about changing that ...)  Note you must restart the
postmaster to get this change to take effect.

> HOWEVER... what I'm hearing from most folks is that, even under these
> conditions, the performance I'm experiencing is worse than
> expected. If that's true, what should I do to diagnose that?

Have you shown us the specific query and the EXPLAIN output for it?

            regards, tom lane

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Q about function
Next
From: Tom Lane
Date:
Subject: Re: Performance tips