Re: PostgreSQL giving jitters to Skypak

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Christopher Petrilli <petrilli(at)gmail(dot)com>, "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
Cc: "Jussi(dot)Mikkola(at)bonware(dot)com" <jussi(dot)mikkola(at)bonware(dot)com>, aspire420(at)hotpop(dot)com, pgsql-advocacy(at)postgresql(dot)org, in(at)postgresql(dot)org
Subject: Re: PostgreSQL giving jitters to Skypak
Date: 2004-08-25 01:09:42
Message-ID: 200408241809.42930.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-advocacy by date

  From Date Subject
Next Message Marc G. Fournier 2004-08-25 01:32:06 Re: PostgreSQL giving jitters to Skypak
Previous Message Marc G. Fournier 2004-08-24 23:11:13 Re: PostgreSQL giving jitters to Skypak