• Data Warehouse Service

dws
  1. Help Center
  2. Data Warehouse Service
  3. Developer Guide
  4. Systems Tables and Views
  5. PG_TABLES

PG_TABLES

PG_TABLES provides access to basic information about each table in the database.

Table 1 PG_TABLES columns

Name

Type

Reference

Description

schemaname

name

PG_NAMESPACE.nspname

Name of the schema that contains the table

tablename

name

PG_CLASS.relname

Name of the table

tableowner

name

PG_AUTHID.rolname

Owner of the table

tablespace

name

PG_TABLESPACE.Espcname

Tablespace that contains the table. The default value is null

hasindexes

Boolean

PG_CLASS.relhasindex

Whether the table has (or recently had) an index. If it does, its value is true. Otherwise, its value is false.

hasrules

Boolean

PG_CLASS.relhasruls

Whether the table has rules. If it does, its value is true. Otherwise, its value is false.

hastriggers

Boolean

PG_CLASS.RELHASTRIGGERS

Whether the table has triggers. If it does, its value is true. Otherwise, its value is false.