Re: How to use index in WHERE int = float - Mailing list pgsql-general

From Tom Lane
Subject Re: How to use index in WHERE int = float
Date
Msg-id 5081.1225930417@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to use index in WHERE int = float  ("Andrus" <kobruleht2@hot.ee>)
Responses Re: How to use index in WHERE int = float  ("Andrus" <kobruleht2@hot.ee>)
List pgsql-general
"Andrus" <kobruleht2@hot.ee> writes:
> As you see simply removing constant expression
>  '0' or
> produces different query plan which is much faster for large amoutnts of
> data.

The IN-pullup code runs before constant-simplification does, so it
doesn't see that as a simple join condition.

            regards, tom lane

pgsql-general by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: Read only access, via functions only
Next
From: "Dann Corbit"
Date:
Subject: Re: Are there plans to add data compression feature to postgresql?