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

Re: Query on postgresql 7.4.2 not using index

From: "chris smith" <dmagick(at)gmail(dot)com>
To: "Scott Marlowe" <smarlowe(at)g2switchworks(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Query on postgresql 7.4.2 not using index
Date: 2006-04-26 01:39:41
Message-ID: 3c1395330604251839g1063da6k62f0c85d59fe89c0@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-performance
> OK.  Stop and think about what you're telling postgresql to do here.
>
> You're telling it to cast the field group_id to int8, then compare it to
> 9.  How can it cast the group_id to int8 without fetching it?  That's
> right, you're ensuring a seq scan.  You need to put the int8 cast on the
> other side of that equality comparison, like:

Yeh that one was my fault :) I couldn't remember which way it went and
if 7.4.x had issues with int8 indexes..

--
Postgresql & php tutorials
http://www.designmagick.com/

In response to

pgsql-performance by date

Next:From: mlartz@gmail.comDate: 2006-04-26 01:42:04
Subject: Re: Hardware: HP StorageWorks MSA 1500
Previous:From: Tom LaneDate: 2006-04-26 01:19:47
Subject: Re: PL/pgSQL Loop Vs. Batch Update

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