Skip site navigation (1) Skip section navigation (2)

Re: Postgres not using indexes

From: Lawrence Cohan <LCohan(at)web(dot)com>
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, "pgsql-bugs(at)postgresql(dot)org"<pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Postgres not using indexes
Date: 2011-03-30 16:53:23
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
We thank you for the links that have a lots of info and please note that we tuned our servers as recommended by Enterprise DB experts while they were in house for our hardware/software migrations and the setting you mentioned are in place already.

Lawrence Cohan.

-----Original Message-----
From: Kevin Grittner [mailto:Kevin(dot)Grittner(at)wicourts(dot)gov]
Sent: March-30-11 12:45 PM
To: pgsql-bugs(at)postgresql(dot)org; Lawrence Cohan
Subject: Re: [BUGS] Postgres not using indexes

Lawrence Cohan <LCohan(at)web(dot)com> wrote:

> We have a huge performance issues in Postgres that surfaced due to
> existing indexes not being used

This doesn't sound like a bug; it sounds like you haven't tuned your

For starters, you should check out this page:

As a quick try, you could issue these statements on the connection
right before one of the problem queries:

set effective_cache_size = '7GB';
  -- use 1 or 2 GB less than RAM on the machine
set random_page_cost = 2;
-- now try your query

If, after reading the above-cited page and tuning your server you
still have performance problems, pick one query to work on first,
and follow the step outlined here:

Use the pgsql-performance list for performance issues, not the bugs
list.  You'll find more people who will be able to help you with
performance issues there.


The information contained in this message and or attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any system and destroy any copies.

In response to


pgsql-bugs by date

Next:From: julia.jacobsonDate: 2011-03-30 16:56:29
Subject: Re: BUG #5960: No rule to make target 'libpq.a', needed by 'all-static-lib'
Previous:From: Lawrence CohanDate: 2011-03-30 16:51:17
Subject: Re: Postgres not using indexes

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group