Re: Query Plan - Index Scan & Seq Scan - Mailing list pgsql-admin

From Prasanth
Subject Re: Query Plan - Index Scan & Seq Scan
Date
Msg-id 428387D2.8050200@nqadmin.com
Whole thread Raw
In response to Re: Query Plan - Index Scan & Seq Scan  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Query Plan - Index Scan & Seq Scan
List pgsql-admin
Thanks Tom.

Seems like having int2 after code is doing the trick.

Can you please explain the reasons behind this.

I Really appreciate your time.

Thanks,
-Prasanth.

Tom Lane wrote:
> Prasanth <dbadmin@nqadmin.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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>
>

pgsql-admin by date:

Previous
From: Prasanth
Date:
Subject: Re: Query Plan - Index Scan & Seq Scan
Next
From: "Vishal Kashyap @ [SaiHertz]"
Date:
Subject: Compile Error for postgresql-8.0.3