-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NH] Support timetz datatype #5964
Comments
We had docs for this, then removed them, to discourage users from using |
Relevant PR: cockroachdb/cockroach#43023 |
@otan can give you the details but we addressed all known bugs in our TIMETZ implementation with this work and we should definitely document it. |
Yep, it should basically work exactly how postgres does it now! Only docs callouts (based on cockroachdb/cockroach#43023)
|
Sweet. Thanks @otan! |
Oh, and the main gotcha is that Time will display time based on context timezone (e.g. SET TIME ZONE If Postgres docs doesn't cover this kind of subtlety, let me know and I can be a bit more detailed. |
on research, we should actually discourage timetz: https://dba.stackexchange.com/questions/187351/what-is-a-valid-use-case-for-using-time-with-time-zone/187359#187359 |
From release notes:
|
Background: https://airtable.com/tblD3oZPLJgGhCmch/viw1DKmbKhg2MIECH/recgAULbWY1898miw
Description: CockroachDB supports a new data type timetz that includes both the time of day and time zone.
Postgres alias time (time [ (p) ] with time zone) with timetz to include both the time of day and time zone. Many third-party tools like Hibernate expect this data type to include time zone information.
Team: Andrew Woods, Jordan Lewis
Github Tracking Issue: cockroachdb/cockroach#26097 cockroachdb/cockroach#20944 cockroachdb/cockroach#16490 #2982 #5964
The text was updated successfully, but these errors were encountered: