All Products
Search
Document Center

PolarDB:System views

Last Updated:Dec 13, 2024

In addition to system catalogs, the system also provides built-in views. Some system views provide convenient access to common queries on system catalogs. Other views provide access to internal server states.

The information schema provides a set of alternative views that overlap with system views in terms of functionality. Because the information schema is generally used in SQL and the views described here are specific to this system, we recommend that you use the information schema if it can provide the information you need.

The following table lists the system views. Detailed documentation of each view is provided later. Except otherwise specified, all views described here are read-only.

View name

Purpose

pg_available_extensions

Available extensions.

pg_available_extension_versions

Available versions of extensions.

pg_config

Compile-time configuration parameters.

pg_cursors

Open cursors.

pg_file_settings

Summary of configuration file contents.

pg_group

Groups of database users

pg_hba_file_rules

Summary of client authentication configuration file contents

pg_indexes

Indexes.

pg_locks

Locks currently held or awaited.

pg_matviews

Materialized views

pg_policies

Policies.

pg_prepared_statements

Prepared statements.

pg_prepared_xacts

Prepared transactions.

pg_publication_tables

Publications and information of their associated tables.

pg_replication_origin_status

Information about replication origins, including replication progress.

pg_replication_slots

Replication slot information.

pg_roles

Database roles.

pg_rules

Rules.

pg_seclabels

Security labels.

pg_sequences

Sequences.

pg_settings

Parameter settings

pg_shadow

Database users.

pg_shmem_allocations

Shared memory allocations.

pg_stats

Planner statistics.

pg_stats_ext

Extended planner statistics.

pg_tables

Tables.

pg_timezone_abbrevs

Time zone abbreviations.

pg_timezone_names

Time zone names.

pg_user

Database users.

pg_user_mappings

User mappings.

pg_views

Views.