From 1f47558b8e525441f099fe515cd5bc12c0d81d0c Mon Sep 17 00:00:00 2001 From: Iain Cox Date: Wed, 4 Sep 2024 12:28:17 +0200 Subject: [PATCH] fix: correct sample for `reorder_chunk`. (#3136) --- api/reorder_chunk.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/reorder_chunk.md b/api/reorder_chunk.md index d11c8d19d9..0acf726f0d 100644 --- a/api/reorder_chunk.md +++ b/api/reorder_chunk.md @@ -46,11 +46,12 @@ This function returns void. ### Sample usage +Reorder a chunk on an index: + ```sql -SELECT reorder_chunk('_timescaledb_internal._hyper_1_10_chunk', 'conditions_device_id_time_idx'); +SELECT reorder_chunk('_timescaledb_internal._hyper_1_10_chunk', '_timescaledb_internal.conditions_device_id_time_idx'); ``` -runs a reorder on the `_timescaledb_internal._hyper_1_10_chunk` chunk using the `conditions_device_id_time_idx` index. [add_reorder_policy]: /api/:currentVersion:/hypertable/add_reorder_policy/ [postgres-cluster]: https://www.postgresql.org/docs/current/sql-cluster.html