Skip to content

show_tablespaces()

Show the tablespaces attached to a hypertable

Since 0.7.0

Show the tablespaces attached to a hypertable.

SELECT * FROM show_tablespaces('conditions');
show_tablespaces
------------------
disk1
disk2

The syntax is:

SELECT show_tablespaces(
hypertable = '<hypertable_name>'
);
NameTypeDefaultRequiredDescription
hypertableREGCLASS-hypertable to show attached tablespaces for.
ColumnTypeDescription
show_tablespacesNAMEThe name of each tablespace attached to the hypertable. Returns one row per attached tablespace.

The function returns a set of tablespace names. If no tablespaces are attached to the hypertable, the function returns an empty result set.