by shanipribadi · 5y ago · 0 comments
The decision on which type to use IMO depends a lot more on the behaviour of the database driver of your programming language, and which one works better with the type.
If you're not writing an application that uses a db driver, but interacting with pg over psql manually, timestamptz is preferrable because a lot of pg functions works better with timestamptz. If you use timestamp, you would need to be using explicit timezone conversion and be consistent to avoid weird double timezone conversion issues, which makes it far more verbose.
No comments yet.