From: Prasanth <dbadmin@nqadmin.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Query Plan - Index Scan & Seq Scan
Date: Thu, 12 May 2005 11:41:05 -0500
Message-ID: <42838721.50801@nqadmin.com> (raw)
In-Reply-To: <6708.1115915406@sss.pgh.pa.us>
References: <428370AC.3070207@nqadmin.com>
<886.1115910870@sss.pgh.pa.us>
<428379E0.4010709@nqadmin.com>
<2052.1115913920@sss.pgh.pa.us>
<428381C3.80205@nqadmin.com>
<6708.1115915406@sss.pgh.pa.us>
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@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
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: dbadmin@nqadmin.com, tgl@sss.pgh.pa.us
Subject: Re: Query Plan - Index Scan & Seq Scan
In-Reply-To: <42838721.50801@nqadmin.com>
References: <428370AC.3070207@nqadmin.com> <886.1115910870@sss.pgh.pa.us> <428379E0.4010709@nqadmin.com> <2052.1115913920@sss.pgh.pa.us> <428381C3.80205@nqadmin.com> <6708.1115915406@sss.pgh.pa.us> <42838721.50801@nqadmin.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox