Re: PostgreSQL giving jitters to Skypak - Mailing list pgsql-advocacy

From Josh Berkus
Subject Re: PostgreSQL giving jitters to Skypak
Date
Msg-id 200408241809.42930.josh@agliodbs.com
Whole thread Raw
In response to Re: PostgreSQL giving jitters to Skypak  (Christopher Petrilli <petrilli@gmail.com>)
List pgsql-advocacy
Chris,

> I've always wondered... is there some reason we don't do "type
> promotion" to match indices? So if someone provides an int, and a
> bigint index exists, it should be used automatically, as they're
> interchangable (i.e. int is a subset of bigint).

Because it's actually more difficult that it sounds.

However, we *have* made changes to 8.0 to make it better at selecting
appropriate types for constants when and index exists.

--
Josh Berkus
Aglio Database Solutions
San Francisco

pgsql-advocacy by date:

Previous
From: Christopher Petrilli
Date:
Subject: Re: PostgreSQL giving jitters to Skypak
Next
From: "Marc G. Fournier"
Date:
Subject: Re: PostgreSQL giving jitters to Skypak