Skip to content
TimescaleDB - Timeseries database for PostgreSQL Docs
  • Timescale.com
  • Try for free
Get started
Create your first Timescale service
Try the key Timescale features
Start coding with Timescale
About Timescale products
Timescale architecture for real-time analytics
Pricing plans and account management
Changelog
Use Timescale
Hypertables
Hypercore
Continuous aggregates
Tutorials
Integrations
API Reference
Hypertables & chunks
create_hypertable
create_hypertable (old interface)
show_chunks
drop_chunks
reorder_chunk
merge_chunks
move_chunk
add_reorder_policy
remove_reorder_policy
attach_tablespace
detach_tablespace
detach_tablespaces
show_tablespaces
set_chunk_time_interval
set_integer_now_func
add_dimension
add_dimension (old interface)
enable_chunk_skipping
disable_chunk_skipping
create_index (transaction per chunk)
hypertable_size
hypertable_approximate_size
hypertable_detailed_size
hypertable_approximate_detailed_size
hypertable_index_size
chunks_detailed_size
Hypercore
Continuous aggregates
Data retention
Jobs and automation
Hyperfunctions
Informational views
Configuration
Administration Functions
API Reference Tag Overview
Compression (Old API, replaced by Hypercore)
Distributed hypertables (Sunsetted v2.14.x)
Migrate and sync data to Timescale Cloud
AI and Vector: pgai on Timescale
Other deployment options
Find a docs page
TimescaleDB API referenceHypertables and chunks

show_tablespaces()

Show the tablespaces attached to a hypertable.

Required arguments

NameTypeDescription
hypertableREGCLASSHypertable to show attached tablespaces for.

Sample usage

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

Keywords

tablespaceshypertables

Found an issue on this page?Report an issue or Edit this page in GitHub.

Previousdetach_tablespacesNextset_chunk_time_interval

Related Content

show_chunks()
Show the chunks belonging to a hypertable
move_chunk()
Move a chunk and its indexes to a different tablespace
attach_tablespace()
Attach a tablespace to a hypertable
detach_tablespace()
Detach a tablespace from a hypertable
detach_tablespaces()
Detach all tablespaces from a hypertable
Hypertables and chunks
Timescale Cloud API reference for dealing with hypertables and chunks. Includes all SQL functions and views related to managing hypertables, chunks, dimensions, tablespaces, and indexing