Thomas Munro <thomas.mu...@enterprisedb.com> writes: > What do you think about the attached?
I think you need to cast MyStartTimestamp to uint64 before shifting to ensure portable behavior of the shifts. In principle it wouldn't matter because the int64 sign bit is nowhere near the part we care about, but I've heard some pretty wild claims about what compiler writers are entitled to do with "undefined" cases. regards, tom lane