-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
sql: implement the pg_timezone_names table #94122
Conversation
1acd324
to
09c571e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is timely! we just got cockroachdb/docs#15873, and looks like this will resolve it
Reviewable status:
complete! 0 of 0 LGTMs obtained (waiting on @otan)
pkg/sql/pg_catalog.go
line 4154 at r1 (raw file):
func addRowForTimezoneNames(tz string, t time.Time, addRow func(...tree.Datum) error) error { abbrev, offset := t.Zone() d := duration.MakeDuration(int64(offset)*int64(time.Second), 0, 0)
what is this multiplication meant to calculate?
pkg/sql/pg_catalog.go
line 4159 at r1 (raw file):
tree.NewDString(abbrev), // abbrev tree.NewDInterval(d, types.DefaultIntervalTypeMetadata), // utc_offset tree.MakeDBool(tree.DBool(t.IsDST())), // is_dist
nit: comment should be is_dst
86564a0
to
4bfa781
Compare
bors r=rafiss |
Merge conflict. |
Release note (sql change): Implement the `pg_timezone_names` pg_catalog table, which lists all supported timezones.
4bfa781
to
e1be665
Compare
bors r=rafiss |
Build succeeded: |
Informs #84505
Release note (sql change): Implement the
pg_timezone_names
pg_catalog table, which lists all supported timezones.