pg_catalog_user.slt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. # Start from a pristine server
  11. reset-server
  12. statement ok
  13. CREATE ROLE nonlogin_because_not_formatted_like_an_email
  14. statement ok
  15. CREATE ROLE "materialize@foocorp.io"
  16. query TIBBBBTTT rowsort
  17. SELECT usename, usesysid, usecreatedb, usesuper, userepl, usebypassrls, passwd, valuntil, useconfig FROM pg_user;
  18. ----
  19. materialize@foocorp.io 20190 false NULL false false ******** NULL NULL
  20. mz_support 16662 false NULL false false ******** NULL NULL
  21. mz_system 16661 true true false false ******** NULL NULL
  22. statement ok
  23. ALTER USER "materialize@foocorp.io" SET search_path = 'abc,def';
  24. statement ok
  25. ALTER USER "materialize@foocorp.io" SET cluster = "cluster=cluster=cluster=";
  26. query TT rowsort
  27. SELECT usename, useconfig::text FROM pg_user;
  28. ----
  29. materialize@foocorp.io {cluster=cluster=cluster=cluster=,"search_path=abc,␠def"}
  30. mz_support NULL
  31. mz_system NULL