Re: Postgres not using indexes - Mailing list pgsql-bugs

From Kevin Grittner
Subject Re: Postgres not using indexes
Date
Msg-id 4D94BB07020000250003C09F@gw.wicourts.gov
Whole thread Raw
In response to Re: Postgres not using indexes  (Greg Stark <gsstark@mit.edu>)
Responses Re: Postgres not using indexes  (Greg Stark <gsstark@mit.edu>)
List pgsql-bugs
Greg Stark <gsstark@mit.edu> wrote:

> your query does require reading all the data.

Huh?  It requires reading all the data from at least *one* of the
tables.  I could conceivably be faster to read all the data from the
table with 23,980 rows and randomly pick out the necessary 33,768
rows from the table with 33,909,690 rows using the
idx_order_items_order_id index.  That seems like it might be faster.

-Kevin

pgsql-bugs by date:

Previous
From: Kris Jurka
Date:
Subject: Re: BUG #5961: JDBC Driver acceptURL does not check 'jdbc:postgresql:'
Next
From: Greg Stark
Date:
Subject: Re: Postgres not using indexes