E.g., If I have a table with a bigint primary key and application data compared against that primary key, must I always explicitly cast the application data to bigint if I want postgres to use the index?
SELECT * FROM some_table WHERE primary_key_column = 42
vs.
SELECT * FROM some_table WHERE primary_key_column = 42::int8
There's no way to tell postgres to treat incoming data implicitly as the type of the column, right?
Thanks!
-tfo
---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster