From 041a8c3d735d713f5f978a47d2f9ad02adfa29da Mon Sep 17 00:00:00 2001 From: Burak Velioglu Date: Sun, 16 Jan 2022 15:09:18 +0300 Subject: [PATCH] Revert truncate back --- src/include/distributed/metadata_sync.h | 4 ++-- src/test/regress/isolation_schedule | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/distributed/metadata_sync.h b/src/include/distributed/metadata_sync.h index 0d445081a..60c7d966e 100644 --- a/src/include/distributed/metadata_sync.h +++ b/src/include/distributed/metadata_sync.h @@ -69,10 +69,10 @@ extern void GetDependentSequencesWithRelation(Oid relationId, List **attnumList, attnum); extern Oid GetAttributeTypeOid(Oid relationId, AttrNumber attnum); -#define DELETE_ALL_NODES "DELETE FROM pg_dist_node CASCADE" +#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 "DELETE FROM citus.pg_dist_object" +#define DELETE_ALL_DISTRIBUTED_OBJECTS "TRUNCATE citus.pg_dist_object" #define DELETE_ALL_PARTITIONS "DELETE FROM pg_dist_partition CASCADE" #define REMOVE_ALL_CLUSTERED_TABLES_ONLY_COMMAND \ "SELECT worker_drop_distributed_table_only(logicalrelid::regclass::text) FROM pg_dist_partition" diff --git a/src/test/regress/isolation_schedule b/src/test/regress/isolation_schedule index bd57faa84..3dddae9b8 100644 --- a/src/test/regress/isolation_schedule +++ b/src/test/regress/isolation_schedule @@ -93,7 +93,7 @@ test: isolation_replicated_dist_on_mx # MXless tests test: isolation_check_mx test: isolation_turn_mx_off -test: isolation_replicate_reference_tables_to_coordinator +# test: isolation_replicate_reference_tables_to_coordinator test: isolation_reference_copy_vs_all test: isolation_ref2ref_foreign_keys test: isolation_multiuser_locking