Skip to main content
Since 1.3.0 TimescaleDB allows you to move data and indexes to different tablespaces. This allows you to move data to more cost-effective storage as it ages. The move_chunk function acts like a combination of the CLUSTER command and ALTER TABLE…SET TABLESPACE commands. Unlike these commands, however, the move_chunk function uses lower lock levels so that the and are able to be read for most of the process. This comes at a cost of slightly higher disk usage during the operation. For a more detailed discussion of this capability, see the documentation on managing storage with tablespaces.
You must be logged in as a super user, such as the postgres user, to use the move_chunk() call.

Samples

Arguments

The syntax is:

Returns

This function returns void.