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

Re: Not using indexes in WHERE clauses

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: eru(at)mimuw(dot)edu(dot)pl, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Not using indexes in WHERE clauses
Date: 2001-01-19 15:47:26
Message-ID: 8556.979919246@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Using a seqscan to retrieve half of the entries in a table is not a bug,
it is correct behavior.

Your test case might make you think otherwise, but that's because your
test data is artificially well-ordered.  Try the two methods with the
same data loaded in a random order ...

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: pgsql-bugsDate: 2001-01-20 22:48:31
Subject: installation fails
Previous:From: pgsql-bugsDate: 2001-01-19 12:42:15
Subject: Not using indexes in WHERE clauses

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