Avoiding a seq scan on a table.

From: LWATCDR <lwatcdr(at)gmail(dot)com>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Avoiding a seq scan on a table.
Date: 2008-01-14 16:21:37
Message-ID: 8c38cea40801140821x3ced43cn1dc2e4016867fe8d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I am trying to create and index that will prevent a seq scan table.
The querey that is causing the seq scan is this SELECT COUNT(*) FROM
issuetracking where (issue_target='david' OR manager='david') AND
date_closed=null;
Any ideas on what
Any suggestions on what index I can add that will make this not a seq scan?

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message LWATCDR 2008-01-14 16:45:53 Re: Avoiding a seq scan on a table.
Previous Message Mike Dorin 2008-01-13 04:06:45 Re: distributed databases?