Re: Using bigint needs explicit cast to use the index

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: pgsql-performance(at)postgresql(dot)org
Subject: Re: Using bigint needs explicit cast to use the index
Date: 2004-03-08 16:33:20
Message-ID: 20040308163320.GA32497@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Mon, Mar 08, 2004 at 11:05:25 -0500,
Andrew Sullivan <ajs(at)crankycanuck(dot)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.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message William Yu 2004-03-08 16:40:28 Re: Scaling further up
Previous Message Neil Conway 2004-03-08 16:22:56 Re: Using bigint needs explicit cast to use the index