SQL 参考
System Views

System Views

In addition to the system catalogs, ProtonBase provides a number of built-in views. Some system views provide convenient access to some commonly used queries on the system catalogs. Other views provide access to internal server state.

Table 12.40 lists the system views described here. More detailed documentation of each view follows below. There are some additional views that provide access to the results of the statistics collector; they are described in "monitoring-stats-views-table".

Except where noted, all the views described here are read-only.

Table System Views

View NamePurpose
pg_available_extensionsavailable extensions
pg_indexesindexes
pg_lockslocks currently held or awaited
pg_matviewsmaterialized views
pg_prepared_statementsprepared statements
pg_prepared_xactsprepared transactions
pg_rolesdatabase roles
pg_seclabelssecurity labels
pg_settingsparameter settings
pg_shadowdatabase users
pg_tablestables
pg_userdatabase users
pg_viewsviews