Skip to main content

Overview

The pg_statio_user_tables contains one row for each user table in the current database, showing statistics columns filled with zeros.

Columns

This table is designed for compatibility with tools that require PostgreSQL system tables, so it mostly has dummy data. Please note that not all columns in pg_statio_user_tables are applicable to every type of relation
The following columns are available for querying in pg_statio_user_tables :

Example

  1. Create a new table:
  1. Run the query combined with a WHERE clause to look up based on the table name (relname):
  1. It will return the table size in bytes: