Giter VIP home page Giter VIP logo

Comments (3)

rafiss avatar rafiss commented on August 16, 2024

@annrpom since you are working with zone configs, could you see if this repros in a recent version? I think we should try to do DROP DATABASE CASCADE after setting a zone config on an index. If that doesn't cause the error, we can close this as unactionable, since we don't know how to repro this.

from cockroach.

annrpom avatar annrpom commented on August 16, 2024

@rafiss 🫡

from cockroach.

annrpom avatar annrpom commented on August 16, 2024

on 24.1, this does not repro:

[email protected]:26257/movr> CREATE DATABASE foo;                     
CREATE DATABASE

Time: 13ms total (execution 13ms / network 1ms)

[email protected]:26257/movr> USE foo;                                 
SET

Time: 6ms total (execution 6ms / network 0ms)

[email protected]:26257/foo> CREATE TABLE my_table (                   
                               ->     id INT PRIMARY KEY,                   
                               ->     name STRING                           
                               -> );                                        
CREATE TABLE

Time: 4ms total (execution 4ms / network 0ms)

[email protected]:26257/foo> CREATE INDEX my_index ON my_table (name); 
CREATE INDEX

Time: 175ms total (execution 175ms / network 0ms)

[email protected]:26257/foo> ALTER INDEX my_table@my_index CONFIGURE   
                               -> ZONE USING                                
                               ->     num_replicas = 10;                    
CONFIGURE ZONE 1

Time: 7ms total (execution 6ms / network 0ms)

[email protected]:26257/my_database> set use_declarative_schema_changer =      
                               -> unsafe_always;                            
SET

Time: 1ms total (execution 0ms / network 0ms)

[email protected]:26257/my_database> set sql_safe_updates = false;             
SET

Time: 1ms total (execution 1ms / network 0ms)

[email protected]:26257/my_database> drop database my_database cascade;        
DROP DATABASE

Time: 79ms total (execution 79ms / network 0ms)

warning: error retrieving the database name: ERROR: database "my_database" does not exist (SQLSTATE 3D000)

from cockroach.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.