Re: Using bigint needs explicit cast to use the index - Mailing list pgsql-performance

From Bruno Wolff III
Subject Re: Using bigint needs explicit cast to use the index
Date
Msg-id 20040308163320.GA32497@wolff.to
Whole thread Raw
In response to Re: Using bigint needs explicit cast to use the index  (Andrew Sullivan <ajs@crankycanuck.ca>)
List pgsql-performance
On Mon, Mar 08, 2004 at 11:05:25 -0500,
  Andrew Sullivan <ajs@crankycanuck.ca> wrote:
>
> "Intended", no.  "Expected", yes.  This topic has had the best
> Postgres minds work on it, and so far nobody's come up with a
> solution.  There was a proposal to put in a special-case automatic
> fix for int4/int8 in 7.4, but I don't know whether it made it in.

This is handled better in 7.5. Instead of doing things deciding what
types of type conversion to do, a check is make for cross type conversion
functions that could be used for an index scan. This is a general solution
that doesn't result in unexpected type conversions.

pgsql-performance by date:

Previous
From: Neil Conway
Date:
Subject: Re: Using bigint needs explicit cast to use the index
Next
From: Andrew Sullivan
Date:
Subject: Re: Using bigint needs explicit cast to use the index