system-functions.td 890 B

1234567891011121314151617181920212223242526272829
  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. > SELECT mz_uptime() > interval '1 second' AND mz_uptime() < interval '1 year';
  10. true
  11. > SELECT mz_version() != '';
  12. true
  13. > SELECT current_user = current_role AND current_user != '';
  14. true
  15. > SELECT session_user = current_role AND session_user != '';
  16. true
  17. > SELECT now() - pg_postmaster_start_time() > interval '1 second' AND now() - pg_postmaster_start_time() < interval '1 year';
  18. true
  19. > SELECT length(cast(mz_environment_id() as text)) > 36;
  20. true
  21. > SELECT length(cast(mz_internal.mz_session_id() as text));
  22. 36