"flying2001us@yahoo.com" <flying2001us@yahoo.com> writes:
> After change the SQL clause to "SELECT * from mytable WHERE mykey=$1::int8", the binding passed!
If you had to insert an explicit cast, it means that "mykey" isn't int8,
which makes one wonder why you are bothering.
regards, tom lane