© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
1 reply
psteinroe

Foreign key on timezone with current utc offset

We have a table timezones which is essentially a copy of the pg_timezone_names view. After the world changed the clocks past weekend, the utc_offset in our table is not correct anymore. Since the pg_timezone_names view is just a view, we cannot reference it. Ofc one option would be a cron job that runs twice a year and refreshes the copy. Is there any way to just reference a pg-provided table that contains the tz name with its current utc_offset instead?
68747470733a2f2f692e7974696d672e636f6d2f76692f2d3577706d2d6765734f592f6d617872657364656661756c742e6a7067.jpeg
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Foreign Key Fails on Trigger
SupabaseSSupabase / help-and-questions
4y ago
Composite key foreign key issue
SupabaseSSupabase / help-and-questions
6mo ago
violates foreign key constraint
SupabaseSSupabase / help-and-questions
4y ago
Foreign Key Array Columns
SupabaseSSupabase / help-and-questions
4y ago