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 16:41:05
Message-ID: 42838721.50801@nqadmin.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Sorry seems like I am missing some thing here.

What is the difference between int2 & int4 as far as index scan is concerned?

I did try to update to 8.0 but it is not taking my dump from 7.4.7. If I
remember right it was complaining about pg_database being not present. I posted
a message on forums no response so I had to abort it. I will give it a short
again when I have some time.

I think pg_database belongs to pgadmin. I can drop those tables and create a
dump but then if for some reason I have to restore a old dump them I will be in
trouble.

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

Browse pgsql-admin by date

  From Date Subject
Next Message Prasanth 2005-05-12 16:44:02 Re: Query Plan - Index Scan & Seq Scan
Previous Message Tom Lane 2005-05-12 16:30:06 Re: Query Plan - Index Scan & Seq Scan