indexes.slt 915 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. mode cockroach
  10. simple conn=mz_system,user=mz_system
  11. SET CLUSTER TO quickstart
  12. ----
  13. COMPLETE 0
  14. # Test creating indexes on system objects
  15. simple conn=mz_system,user=mz_system
  16. CREATE INDEX i ON mz_views()
  17. ----
  18. COMPLETE 0
  19. # Test that creating indexes on objects in the mz_internal schema fails
  20. simple conn=mz_system,user=mz_system
  21. CREATE INDEX illegal_sys_ind ON mz_internal.mz_comments (id)
  22. ----
  23. db error: ERROR: cannot create index with unstable dependencies
  24. DETAIL: The object depends on the following unstable objects:
  25. mz_comments