pg_catalog_namespace.slt 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. statement ok
  11. CREATE SCHEMA other;
  12. statement ok
  13. CREATE DATABASE other
  14. query TT rowsort
  15. SELECT nspname, nspacl FROM pg_catalog.pg_namespace
  16. ----
  17. information_schema NULL
  18. mz_catalog NULL
  19. mz_catalog_unstable NULL
  20. mz_unsafe NULL
  21. mz_internal NULL
  22. mz_introspection NULL
  23. other NULL
  24. pg_catalog NULL
  25. public NULL
  26. query I
  27. SELECT COUNT(*) FROM pg_catalog.pg_namespace WHERE nspowner IS NOT NULL
  28. ----
  29. 9
  30. statement ok
  31. SET database = other;
  32. query TT rowsort
  33. SELECT nspname, nspacl FROM pg_catalog.pg_namespace
  34. ----
  35. information_schema NULL
  36. mz_catalog NULL
  37. mz_catalog_unstable NULL
  38. mz_unsafe NULL
  39. mz_internal NULL
  40. mz_introspection NULL
  41. pg_catalog NULL
  42. public NULL
  43. query I
  44. SELECT COUNT(*) FROM pg_catalog.pg_namespace WHERE nspowner IS NOT NULL
  45. ----
  46. 8