Re: The type int8 and the use of indexes

From: "Igor V(dot) Rafienko" <igorr(at)ifi(dot)uio(dot)no>
To:
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: The type int8 and the use of indexes
Date: 2001-01-26 09:33:19
Message-ID: Pine.SOL.4.21.0101261031250.14341-100000@heidrek.ifi.uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

on Jan 25, 2001, 15:14, Stephan Szabo std::cout'ed:

[snip]

| select * from table where pk=1::int8 should use the index if pk is an
| int8 column.

Would that work for other operators (such as <, >, etc.) as well? Last
time I tried something similar on Postgres-7.0.2, the index was used on
equality but not on "less-than" (the number of rows in the result was very
small).

ivr
--
Everybody has to have a philosophy. Some people believe in laissez
faire economics, others believe in reincarnation. Some people even
believe that COBOL is a real programming language.
S. Meyers, "Effective C++", item 26

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2001-01-26 09:35:44 Re: vacuum
Previous Message Denis Perchine 2001-01-26 09:26:11 Re: Load a database into memory