pgsql-bugs(at)postgresql(dot)org writes:> CREATE TABLE test (> testid int8 not null default 0,
> janko=# EXPLAIN SELECT * FROM test WHERE testid = 12345;
Try 12345::int8. Yes, we know it's a pain in the neck.
regards, tom lane