Company
Date Published
Author
Oliver Tan
Word count
4601
Language
English
Hacker News points
7

Summary

This blog post delves into the intricacies of time data types in PostgreSQL, including TIME, TIMETZ, TIMESTAMP, and TIMESTAMPTZ. It covers topics such as session time zones, POSIX time offsets, parsing, casting, precision, functions and operators, AT TIME ZONE, daylight savings, interval math with daylight savings, the Y2K38 problem, and more. The author recommends using TIMESTAMPTZ with a session time zone set to UTC for handling time data types in PostgreSQL.