index not used for bigint without explicit cast - Mailing list pgsql-bugs

From Sam.Mesh
Subject index not used for bigint without explicit cast
Date
Msg-id CACi6F2nKR=5Tt21jwXcw2PAF_hfQfV7czvY92NT6onTUgR3=tw@mail.gmail.com
Whole thread Raw
Responses Re: index not used for bigint without explicit cast  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-bugs
Hello,

"index not used for bigint without explicit cast" is very old limitation mentioned in 2003 at

Here is more recent mention of similar limitation in 2021
***
The problem arrises with the other case, where the values from the table are to be converted to match the datatype of the query (i.e., we give numeric in query and the column is of bigint type). As Postgres can only cast a bigint to numeric, the only option it has is to convert every row in the table to numeric and then compare. Thus in this case, the index won’t be used.
***

Probably, somebody knows the current state of this limitation?

Thanks,
Sam

pgsql-bugs by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: BUG #17741: vacuum process hangs after pg_surgery manipulations
Next
From: Peter Geoghegan
Date:
Subject: Re: index not used for bigint without explicit cast