Re: Query uses incorrect index - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: Query uses incorrect index
Date
Msg-id 4D119B40020000250003892D@gw.wicourts.gov
Whole thread Raw
In response to Query uses incorrect index  (pasman pasmański <pasman.p@gmail.com>)
List pgsql-performance
Guillaume Cottenceau  wrote:

> If I'm correct, you're basically telling postgresql that your
> disk is unusually fast compared to your CPU. Even if some queries
> will run faster from a side-effect of these settings, you're
> likely to create other random problems...

If this is set globally and the active portion of the database is not
highly cached, yes.  If the example query is typical of the level of
caching for frequently-run queries, it might provide an overall
performance boost to set these in postgresql.conf.

The original problem was that the optimizer was grossly
over-estimating the cost of returning a tuple through the index,
which was taking about 0.01 ms per tuple.

-Kevin

pgsql-performance by date:

Previous
From: Gurjeet Singh
Date:
Subject: Re: PostgreSQL 9.0 x64 bit pgbench TPC very low question?
Next
From: Tom Lane
Date:
Subject: Re: Query uses incorrect index