diff --git a/src/include/distributed/metadata_sync.h b/src/include/distributed/metadata_sync.h index 77c85b791..94e62b355 100644 --- a/src/include/distributed/metadata_sync.h +++ b/src/include/distributed/metadata_sync.h @@ -77,11 +77,11 @@ extern void GetDependentSequencesWithRelation(Oid relationId, List **attnumList, attnum); extern Oid GetAttributeTypeOid(Oid relationId, AttrNumber attnum); -#define DELETE_ALL_NODES "TRUNCATE pg_dist_node CASCADE" -#define DELETE_ALL_PLACEMENTS "DELETE FROM pg_dist_placement CASCADE" -#define DELETE_ALL_SHARDS "DELETE FROM pg_dist_shard CASCADE" -#define DELETE_ALL_DISTRIBUTED_OBJECTS "TRUNCATE citus.pg_dist_object" -#define DELETE_ALL_PARTITIONS "DELETE FROM pg_dist_partition CASCADE" +#define DELETE_ALL_NODES "DELETE FROM pg_dist_node" +#define DELETE_ALL_PLACEMENTS "DELETE FROM pg_dist_placement" +#define DELETE_ALL_SHARDS "DELETE FROM pg_dist_shard" +#define DELETE_ALL_DISTRIBUTED_OBJECTS "DELETE FROM citus.pg_dist_object" +#define DELETE_ALL_PARTITIONS "DELETE FROM pg_dist_partition" #define REMOVE_ALL_SHELL_TABLES_COMMAND \ "SELECT worker_drop_shell_table(logicalrelid::regclass::text) FROM pg_dist_partition" #define REMOVE_ALL_CITUS_TABLES_COMMAND \