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

Re: Query Plan - Index Scan & Seq Scan

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: dbadmin(at)nqadmin(dot)com
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Query Plan - Index Scan & Seq Scan
Date: 2005-05-12 16:30:06
Message-ID: 6708.1115915406@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-admin
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

Responses

pgsql-admin by date

Next:From: PrasanthDate: 2005-05-12 16:41:05
Subject: Re: Query Plan - Index Scan & Seq Scan
Previous:From: PrasanthDate: 2005-05-12 16:18:11
Subject: Re: Query Plan - Index Scan & Seq Scan

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