Re: Performance - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: Performance
Date
Msg-id 4DA5DA33020000250003C7CC@gw.wicourts.gov
Whole thread Raw
In response to Re: Performance  (Nathan Boley <npboley@gmail.com>)
List pgsql-performance
Nathan Boley <npboley@gmail.com> wrote:

> The problem is that caching effects have a large effect on the
> time it takes to access a random page, and caching effects are
> very workload dependent. So anything automated would probably need
> to optimize the parameter values over a set of 'typical' queries,
> which is exactly what a good DBA does when they set
> random_page_cost...

Another database product I've used has a stored procedure you can
run to turn on monitoring of workload, another to turn it off and
report on what happened during the interval.  It drags performance
enough that you don't want to leave it running except as a tuning
exercise, but it does produce very detailed statistics and actually
offers suggestions on what you might try tuning to improve
performance.  If someone wanted to write something to deal with this
issue, that seems like a sound overall strategy.

-Kevin

pgsql-performance by date:

Previous
From: Nathan Boley
Date:
Subject: Re: Performance
Next
From: Tomas Vondra
Date:
Subject: Re: Performance