TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Working with Postgres Types

65 点作者 alainchabat将近 4 年前

2 条评论

doctor_eval将近 4 年前
I didn’t read the whole article (probably not aimed at me) but I just want to say that you should never, ever, ever use “timestamp without time zone” in PG because it is actually “clock face time” rather than “moment in time” and therefore the moment you try to do anything at all clever with time, you will start to question your own sanity. Well I did anyway.<p>There is not enough room here to explain fully but “Timestamp *with* time zone” effectively means UTC time which is the closest equivalent in PG to Unix epoch time and almost certainly what most people want. It doesn’t actually store a time zone.<p>You’ll thank me later :)
评论 #28110141 未加载
评论 #28105143 未加载
评论 #28104980 未加载
评论 #28106749 未加载
评论 #28106558 未加载
评论 #28107059 未加载
CRConrad将近 4 年前
Interesting read, not just this post but the whole series. I used to follow Udell&#x27;s writings (though I can&#x27;t recall now where they were published; must have been some magazine, I think, not just his own blog), but it seems he drifted out of my sight sometime in the last decade. Thanks for reminding me of him!
评论 #28104256 未加载
评论 #28105147 未加载