feat: 更新文档和数据库管理逻辑,添加运行模式说明,修复分区表空间设置

This commit is contained in:
2026-03-03 20:22:01 +08:00
parent c0cdc9ea66
commit 2b529baeb3
7 changed files with 40 additions and 81 deletions

View File

@@ -48,7 +48,7 @@ BEGIN
part_name := heartbeat.partition_name_for_day(p_day);
EXECUTE format(
'CREATE TABLE IF NOT EXISTS heartbeat.%I PARTITION OF heartbeat.heartbeat_events FOR VALUES FROM (%s) TO (%s)',
'CREATE TABLE IF NOT EXISTS heartbeat.%I PARTITION OF heartbeat.heartbeat_events FOR VALUES FROM (%s) TO (%s) TABLESPACE ts_hot',
part_name, start_ms, end_ms
);
END;