truncate partition子分区

最近更新时间: 2025-02-18 16:02:00

  • 复制
    复制成功
postgres=# alter table t_native_range truncate partition (t_native_range_201708) update indexes;            
TRUNCATE TABLE
postgres=# select * from t_native_range_201708;
 f1 | f2 | f3 
----+----+----
(0 rows)

此语法支持自研分区表、社区分区表(range , list, hash)。