Mark the float8 -> int8 cast as implicit. This resolves the problem
pointed out by Barry Lind: UPDATE bigintcol = 10000000000 fails because the constant is initially taken as float8. We really need a better way, but it's not gonna happen for 7.3. Also, remove int4reltime() function, which is redundant with the existing binary-compatibility coercion path from int4 to reltime, and probably has been unreachable code for a long while.
Showing
- src/backend/utils/adt/nabstime.c 1 addition, 10 deletionssrc/backend/utils/adt/nabstime.c
- src/include/catalog/pg_cast.h 19 additions, 8 deletionssrc/include/catalog/pg_cast.h
- src/include/catalog/pg_proc.h 1 addition, 4 deletionssrc/include/catalog/pg_proc.h
- src/include/utils/nabstime.h 1 addition, 2 deletionssrc/include/utils/nabstime.h
Loading
Please register or sign in to comment