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

Re: int8, primary key, seq scan

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Amiel <jamiel(at)istreamimaging(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: int8, primary key, seq scan
Date: 2004-08-20 01:13:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Jeff Amiel <jamiel(at)istreamimaging(dot)com> writes:
> I declared the compared value (draftid) as an int8, why should I have to 
> cast it as such in the query to cause the optimizer to use the primary key?

Seems like it should work (and it does work for me, in a quick test with
7.4.5).  Could we see the full text of the problematic function?

			regards, tom lane

In response to

pgsql-general by date

Next:From: Richard WeltyDate: 2004-08-20 01:24:13
Subject: Re: PostgreSQL 8.0 Feature List?
Previous:From: Tom LaneDate: 2004-08-20 01:03:55
Subject: Re: unserializable transaction?

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