4 ms·
Yep. That's exactly why this function isn't trivial to write. Boundaries are not obvious and native pg functions (insofar as I'm aware of them) don't do these k
by cedricd 5y ago
Yep. That's exactly why this function isn't trivial to write. Boundaries are not obvious and native pg functions (insofar as I'm aware of them) don't do these kinds of diffs.
Semantically the code has to diff days (for example) but be aware that you crossed a year boundary (or any other).