ch3n2k的中文Lemmy站
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
☆ Yσɠƚԋσʂ ☆@lemmy.ml to General Programming Discussion@lemmy.mlEnglish · 8 hours ago

Postgres AT TIME ZONE 'UTC' does NOT do what you think it does

bookofrevenue.com

external-link
message-square
0
link
fedilink
5
external-link

Postgres AT TIME ZONE 'UTC' does NOT do what you think it does

bookofrevenue.com

☆ Yσɠƚԋσʂ ☆@lemmy.ml to General Programming Discussion@lemmy.mlEnglish · 8 hours ago
message-square
0
link
fedilink
And why you may need to repeat AT TIME ZONE 'UTC' twice. SUMMARY * AT TIME ZONE 'UTC' converts the data type from timestamptz to timestamp (example). * Now you are inadvertently using the timestamp without time zone (aka timestamp) data type, which is markedly discouraged. * There are tons of footguns with timestamp. * For example, the equality of timestamp and timestamptz will always be false..... unless your Postgres' default timezone is UTC. Read more. * Adding a month wit
alert-triangle
You must log in or register to comment.

General Programming Discussion@lemmy.ml

programming@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

  • [email protected]
  • [email protected]
  • [email protected]
  • [email protected]

Systems

  • [email protected]
  • [email protected]
  • [email protected]

Functional Programming

  • [email protected]
  • [email protected]

Also related

  • [email protected]
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 6 users / day
  • 31 users / week
  • 51 users / month
  • 373 users / 6 months
  • 1 local subscriber
  • 10K subscribers
  • 683 Posts
  • 524 Comments
  • Modlog
  • mods:
  • Evan@lemmy.ml
  • Restioson@lemmy.ml
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org