Skip to main content
Since 0.2.0 Get detailed information about disk space used by a or , returning size information for the table itself, any indexes on the table, any toast tables, and the total size of all. All sizes are reported in bytes. If the function is executed on a distributed , it returns size information as a separate row per node, including the access node.
When a name is provided, the function transparently looks up the backing and returns its statistics instead.
For more information about using s, including size partitioning, see the hypertable section.

Samples

Get the size information for a .
The access node is listed without a user-given node name. Normally, the access node holds no data, but still maintains, for example, index information that occupies a small amount of disk space.

Arguments

The syntax is:

Returns

If executed on a relation that is not a , the function returns NULL.