pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: chris smith <dmagick@gmail.com>
To: Scott Marlowe <smarlowe@g2switchworks.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Query on postgresql 7.4.2 not using index
Date: Wed, 26 Apr 2006 11:39:41 +1000
Message-ID: <3c1395330604251839g1063da6k62f0c85d59fe89c0@mail.gmail.com> (raw)
In-Reply-To: <1145980463.23538.218.camel@state.g2switchworks.com>
References: <444E240D.3050000@andromeiberica.com>
	<3c1395330604250634r6f215ceame157f3dd5f5f4fa3@mail.gmail.com>
	<444E28ED.3090900@andromeiberica.com>
	<19483.1145978579@sss.pgh.pa.us>
	<444E44A2.6030703@andromeiberica.com>
	<1145980463.23538.218.camel@state.g2switchworks.com>

> 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/



view thread (11+ messages)

Message-ID: <3c1395330604251839g1063da6k62f0c85d59fe89c0@mail.gmail.com>
Permalink:  ../3c1395330604251839g1063da6k62f0c85d59fe89c0@mail.gmail.com/
Also on:    postgresql.org/message-id/3c1395330604251839g1063da6k62f0c85d59fe89c0@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: dmagick@gmail.com, smarlowe@g2switchworks.com
  Subject: Re: Query on postgresql 7.4.2 not using index
  In-Reply-To: <3c1395330604251839g1063da6k62f0c85d59fe89c0@mail.gmail.com>
  References: <444E240D.3050000@andromeiberica.com> <3c1395330604250634r6f215ceame157f3dd5f5f4fa3@mail.gmail.com> <444E28ED.3090900@andromeiberica.com> <19483.1145978579@sss.pgh.pa.us> <444E44A2.6030703@andromeiberica.com> <1145980463.23538.218.camel@state.g2switchworks.com> <3c1395330604251839g1063da6k62f0c85d59fe89c0@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox