All Products
Search
Document Center

PolarDB:pg_tables

Last Updated:May 10, 2024

The pg_tables view provides access to useful information about each table in the database.

Overview

The following table describes the columns in the pg_tables view.

Column

Type

Description

schemaname

name

Name of schema containing table

tablename

name

Name of table

tableowner

name

Name of the table owner

tablespace

name

Name of tablespace containing table (null if default for database)

hasindexes

bool

If the table has (or recently had) any indexes, the column is true. Otherwise, it is false.

hasrules

bool

If the table has (or once had) rules, this column is true. Otherwise, it is false.

hastriggers

bool

If the table has (or once had) triggers, this column is true. Otherwise, it is false.

rowsecurity

bool

If row security is enabled on the table, this column is true. Otherwise, it is false.