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

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 (view raw or flat)
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

pgsql-novice by date

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

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