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

About index ...

From: <pejac(at)altern(dot)org>
To: pgsql-novice(at)postgresql(dot)org
Subject: About index ...
Date: 2000-10-11 07:03:34
Message-ID: 200010110747.e9B7l2r38347@hub.org (view raw or flat)
Thread:
Lists: pgsql-novice
Hello,

First, excuse me for my english. I have 33 tables ( with millions rows ) and 
for most tables i use btree index. My problem is when
i use explain directive. In fact btree index work only
with operator "=" . eg: select * from test where id = 45
EXPLAIN 
Index scan using idx_id on test 
an doesn't work with select * from test where id < 45.
EXPLAIN
Seq scan on test
Why ???

Thanks


Responses

pgsql-novice by date

Next:From: Gerhard KroderDate: 2000-10-11 08:38:44
Subject: mail-test, just discard
Previous:From: Bill MorrowDate: 2000-10-10 14:54:10
Subject: Re: Selecting weekdays from datetime

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