From: Sergio Freue <sfreue@yahoo.com>
To: pgsql-general@postgresql.org.pgsql-sql
Subject: Re: Why is it not using an index?
Date: Fri, 15 Mar 2002 21:03:21 -0300
Message-ID: <3C928BC9.90305@yahoo.com> (raw)
References: <3C924680.4090806@openratings.com>
I had the same problem and the question was answered here yesterday:
>
> explain select * from a where x=3;
>
Try
explain select * from a where x=3::smallint;
That should do it. I opted for changing all indexed SMALLINT fields to
INTEGER.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sfreue@yahoo.com, pgsql-general@postgresql.org.pgsql-sql
Subject: Re: Why is it not using an index?
In-Reply-To: <3C928BC9.90305@yahoo.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