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

Re: Query Plan - Index Scan & Seq Scan

From: Prasanth <dbadmin(at)nqadmin(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Query Plan - Index Scan & Seq Scan
Date: 2005-05-12 18:49:01
Message-ID: 4283A51D.2060207@nqadmin.com (view raw or flat)
Thread:
Lists: pgsql-admin
Ok read about the indexes and type matches.

So is this fixed in 8.0?

Thanks,
-Prasanth.

Tom Lane wrote:
> Prasanth <dbadmin(at)nqadmin(dot)com> writes:
> 
>>code data type is int2.
> 
> 
> Ah-hah.  So "where code > 2::int2" should work noticeably better for
> you.  Or you could do "where code > '2'" to avoid hard-wiring the data
> type knowledge into your queries.  Or just change it to int4 ;-)
> Or update to 8.0.
> 
> 			regards, tom lane
> 
> 

In response to

pgsql-admin by date

Next:From: Scott MarloweDate: 2005-05-12 19:07:21
Subject: Re: memory allocation ; postgresql-8.0
Previous:From: Kavan, Dan (IMS)Date: 2005-05-12 17:56:34
Subject: Re: resource allocation ; postgresql-8.0

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