Comment Comment by ainar-g https://www.postgresql.org/docs/9.6/static/rangetypes.htmlhttps://www.postgresql.org/docs/9.6/static/functions-range.h...Holy shit. Why hasn't anyone talked about it sooner? I've seen literally dozens of tables with begin TIMESTAMP, end TIMESTAMP, and with handmade validation against intersection. And there is even a union operation! Seriously, my mind is blown.Rails even supports it!http://edgeguides.rubyonrails.org/active_record_postgresql.h... parent ainar-g 9 years ago
https://www.postgresql.org/docs/9.6/static/functions-range.h...
Holy shit. Why hasn't anyone talked about it sooner? I've seen literally dozens of tables with
and with handmade validation against intersection. And there is even a union operation! Seriously, my mind is blown.Rails even supports it!
http://edgeguides.rubyonrails.org/active_record_postgresql.h...