Skip to main content
Since 0.7.0 Detach all tablespaces from a . After issuing this command on a , it no longer has any tablespaces attached to it. New s are instead placed in the database’s default tablespace.

Samples

Detach all tablespaces from the conditions:
SELECT detach_tablespaces('conditions');

Arguments

The syntax is:
SELECT detach_tablespaces(
    hypertable = '<hypertable_name>'
);
NameTypeDefaultRequiredDescription
hypertableREGCLASS-Hypertable to detach the tablespace from.

Returns

NameTypeDescription
detach_tablespacesINTEGERThe total number of tablespaces that were detached from the .