Re: Bugs in bigint indexes

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: nishad@ptolemy.tlg.uci.edu
Cc: Gustavo Scotti <gscotti@axur.com.br>, pgsql-bugs@postgresql.org
Date: 2003-12-19T18:31:16Z
Lists: pgsql-bugs
Nishad Prakash <prakashn@uci.edu> writes:
> Why doesn't the query planner notice that an int-type index is present
> and perform the cast on its own?  Perhaps one of the developers
> can explain?  I think users would like this property if it could be
> implemented without breaking anything.

It's been done for 7.5.  As for why it wasn't done earlier, well, it
was a hard problem.  Read the pgsql-hackers archives.

			regards, tom lane