Moaaz Assali <ma5...@nyu.edu> writes: > - I have used INT64 -> UINT64 mapping in order to ensure no integer > overflows are possible.
I don't think I trust this idea, and in any case it doesn't remove all the overflow hazards: the reduction of the stride interval to microseconds can overflow, and the final subtraction of the stride can too. I changed it to just do the straightforward thing (throwing error if the pg_xxx_s64_overflow routines detect error), and pushed it. Thanks for the report and patch! regards, tom lane