Re: query optimization - Mailing list pgsql-performance

From Kevin Grittner
Subject Re: query optimization
Date
Msg-id 4F994C5A02000025000473FD@gw.wicourts.gov
Whole thread Raw
In response to query optimization  (Richard Kojedzinszky <krichy@tvnetwork.hu>)
List pgsql-performance
Richard Kojedzinszky <krichy@tvnetwork.hu> wrote:

> tuning our installation to not to use sequence scans in this case?

Make sure effective_cache_size is set to the sum of shared_buffers
and whatever your OS shows as usable for caching.  Try adjusting
cost factors: maybe random_page_cost between 1 and 2, and
cpu_tuple_cost between 0.03 and 0.05.

-Kevin

pgsql-performance by date:

Previous
From: Claudio Freire
Date:
Subject: Re: Weird plan variation with recursive CTEs
Next
From: Tom Lane
Date:
Subject: Re: query optimization