This PR aims to prevent attempts to DROP distributed tables. This prevention will be circumvented if the user includes the CASCADE option in their DROP command, in which case partition row belonging to the distributed table is deleted, a notice is printed and the DROP is allowed to proceed.
Note that only partition metadata is removed. Shard and shard placement metadata are preserved for:
Better compliance with CitusDB
Enable users to find shards on the workers even if the distributed tables are dropped
Next step for removing/dropping is already discussed here.
This PR aims to prevent attempts to DROP distributed tables. This prevention will be circumvented if the user includes the CASCADE option in their DROP command, in which case partition row belonging to the distributed table is deleted, a notice is printed and the DROP is allowed to proceed.
Note that only partition metadata is removed. Shard and shard placement metadata are preserved for:
Next step for removing/dropping is already discussed here.