Overview

The pg_table_size() is a system administration function that retrieves the size of a specific table, including its associated storage components but excluding indexes.

Syntax

The syntax for the pg_table_size() function is as follows:

pg_table_size(regclass)

Parameters

The following parameters are required to execute this function:

  • regclass: name or object identifier (OID) of the table whose size is to be retrieved