Re: Bug in predicate indexes? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bug in predicate indexes?
Date
Msg-id 6055.1132325904@sss.pgh.pa.us
Whole thread Raw
In response to Bug in predicate indexes?  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: Bug in predicate indexes?  ("Joshua D. Drake" <jd@commandprompt.com>)
Re: Bug in predicate indexes?  ("Jim C. Nasby" <jnasby@pervasive.com>)
List pgsql-hackers
"Joshua D. Drake" <jd@commandprompt.com> writes:
> It appears that predicate indexes won't uses indexes on int8 columns 
> unless they are casted:

This is a known (although perhaps not well documented) limitation of the
predicate testing logic.  You do not need a cast in the query, though,
only in the index's WHERE condition.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Optional postgres database not so optional in 8.1
Next
From: Andrew Dunstan
Date:
Subject: Re: Anyone want to fix plperl for null array elements?