Re: Query planner isn't using my indices

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "Alaric B(dot) Snell" <abs(at)frontwire(dot)com>
Cc: Doug McNaught <doug(at)wireboard(dot)com>, PostgreSQL general list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Query planner isn't using my indices
Date: 2002-01-10 13:05:44
Message-ID: 20020111000544.A32620@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jan 10, 2002 at 12:18:33PM +0000, Alaric B. Snell wrote:
> On 9 Jan 2002, Doug McNaught wrote:
>
> > Finite developer resources? Feel free to pitch in once the 7.3 cycle
> > starts.
>
> Smile, everyone!
>
> I'm going to pitch to my employer to let me fix it on company time, since
> it's causing problems for us with JBoss (which generates most of the
> queries for us, out of our control).

Interestingly, I find the easiest fix is: never use unquoted constants.

If it didn't break other peoples queries I'd suggest modifying the parser so
that numbers are parsed as strings of type unknown instead of numbers. Then
let the normal type matching system go to work on it.

That said, a good system for type promotion would be cool.
--
Martijn van Oosterhout <kleptog(at)svana(dot)org>
http://svana.org/kleptog/
> Terrorists can only take my life. Only my government can take my freedom.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andrew Gould 2002-01-10 13:06:01 Re: caching subtotals: update vs sum -- aaugh!
Previous Message Jochem van Dieten 2002-01-10 13:00:23 Re: select few fields as a single field