pg_catalog_timezone_names.slt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright Materialize, Inc. and contributors. All rights reserved.
  2. #
  3. # Use of this software is governed by the Business Source License
  4. # included in the LICENSE file at the root of this repository.
  5. #
  6. # As of the Change Date specified in that file, in accordance with
  7. # the Business Source License, use of this software will be governed
  8. # by the Apache License, Version 2.0.
  9. mode cockroach
  10. query T
  11. select count(distinct utc_offset) >= 24 as ok from pg_timezone_abbrevs
  12. ----
  13. true
  14. query TT
  15. SELECT timezone_offset('America/Denver', '2000-06-01 00:00:00 UTC'), timezone_offset('America/Denver', '2000-12-01 00:00:00 UTC')
  16. ----
  17. (MDT,-07:00:00,01:00:00) (MST,-07:00:00,00:00:00)
  18. statement ok
  19. SET unsafe_new_transaction_wall_time = '2000-06-01 00:00:00 UTC';
  20. query TTTT
  21. SELECT * FROM pg_catalog.pg_timezone_names where name = 'America/Denver'
  22. ----
  23. America/Denver MDT -06:00:00 true
  24. statement ok
  25. SET unsafe_new_transaction_wall_time = '2000-12-01 00:00:00 UTC';
  26. query TTTT
  27. SELECT * FROM pg_catalog.pg_timezone_names where name = 'America/Denver'
  28. ----
  29. America/Denver MST -07:00:00 false
  30. # time zone definitions are validated in misc/python/materialize/postgres_consistency/custom/predefined_pg_queries.py