Re: int8 indices? - Mailing list pgsql-general

From Richard Huxton
Subject Re: int8 indices?
Date
Msg-id 008201c11f20$f1fa1ec0$1001a8c0@archonet.com
Whole thread Raw
In response to int8 indices?  (hubert depesz lubaczewski <depesz@depesz.pl>)
List pgsql-general
From: "hubert depesz lubaczewski" <depesz@depesz.pl>

> depesz=# select version();
>                             version
> ---------------------------------------------------------------
>  PostgreSQL 7.2devel on i686-pc-linux-gnu, compiled by GCC 3.0
> (1 row)
>
> (compiled from cvs 2 days ago).

PG 7.2dev, GCC 3.0 - you're just showing off ;-)

> of course i vacuum'ed, but when i select anything from the table i get
> seqscan:
> depesz=# explain select * from a where id = 6970;
> NOTICE:  QUERY PLAN:
>
> Seq Scan on a  (cost=0.00..465.76 rows=1 width=8)

Try where id=6970::int8 - I seem to remember Tom Lane saying the planner got
upset because the constant got cast to an int4 and of course you don't have
an int4 index...

HTH

- Richard Huxton


pgsql-general by date:

Previous
From: "Dr. Evil"
Date:
Subject: Still wondering about random numbers...
Next
From: Michael
Date:
Subject: minimum hardware for Postgresql Install