选择 打开 改范围 完整检索页

pgsql.cc 提供对 postgresql.org 官网内容的中文翻译,由 Pigsty 团队维护。

文档 / 系统目录 / 统计视图

STATISTICS VIEW统计视图

pg_stat_activity

每个服务器进程一行,显示与该进程当前活动相关的信息,例如状态和当前查询。有关详细信息,请参阅pg_stat_activity。

统计视图 引入 9.0(基线) 现存至 20 devel 7 次结构变更

类别
统计视图
关系 OID
12226
关系类型
v(视图)
字段数
22
引入版本
9.0(收录基线)
版本状态
当前稳定版
结构变更
7 次

PostgreSQL 18 手册 官方文档 源码定义

版本轨迹

相对 PostgreSQL 17:描述更新 1 处。

pg_stat_activity视图每个服务器进程将有一行,显示与该进程当前活动相关的信息。

字段

PostgreSQL 18 的 22 个字段,按定义顺序排列。说明默认用本站手册的译文,没有译文的按英文原文显示。

字段 类型 说明
datid oid 这个后端连接到的数据库的OID
datname name 这个后端连接到的数据库的名称
pid integer 这个后端的进程 ID
leader_pid integer 如果该进程是并行查询工作进程,则为并行组领导者的进程 ID;如果该进程是并行应用工作进程,则为领导应用工作进程的进程 ID。NULL 表示该进程是并行组领导者或领导应用工作进程,或者不参与任何并行操作。
usesysid oid 登录到这个后端的用户的 OID
usename name 登录到此后端的用户名称
application_name text 连接到此后端的应用名称
client_addr inet 连接到这个后端的客户端的 IP 地址。如果这个字段为空,它表示客户端通过服务器机器上的一个 Unix 套接字连接或者这是一个内部进程,如自动清理。
client_hostname text 已连接的客户端的主机名,由client_addr的反向 DNS 查找报告。 这个字段将只对 IP 连接非空,并且只有 log_hostname被启用时才会非空。
client_port integer 客户端用于与此后端通信的TCP端口号,如果使用Unix套接字,则为-1。如果该字段为空,它表示这是一个内部服务器进程。
backend_start timestamp with time zone 这个进程被启动的时间。对客户端后端来说,这就是客户端连接到服务器的时间。
xact_start timestamp with time zone 这个进程的当前事务被启动的时间,如果没有活动事务则为空。 如果当前查询是它的第一个事务,这一列等于query_start列。
query_start timestamp with time zone 当前活动查询开始的时间;如果state不是active,则为上一个查询的开始时间
state_change timestamp with time zone state上一次发生改变的时间
wait_event_type text 后端正在等待的事件类型(如果有);否则为NULL。请参阅Table 27.4。
wait_event text 如果此后端当前正在等待,则返回等待事件名称,否则为NULL。请参阅Table 27.5到Table 27.13。
state text 这个后端的当前总体状态。可能的值为:
backend_xid xid 这个后端的顶层事务 ID,如果存在。
backend_xmin xid 当前后端的xmin范围。
query_id bigint 这个后端的最近查询的标识符。 如果state是active,这个字段显示当前正在执行的查询的标识符。 在所有其他状态,它显示执行的最后一个查询的标识符。 默认不计算查询标识符,因此该字段将为空,除非启用compute_query_id参数或配置了计算查询标识符的第三方模块。
query text 这个后端最近查询的文本。如果state为active,这个字段显示当前正在执行的查询。 在所有其他状态下,它显示上一个被执行的查询。默认情况下,查询文本会被截断至1024个字节,这个值可以通过参数track_activity_query_size更改。
backend_type text 当前后端的类型。可能的类型为 autovacuum launcher, autovacuum worker, logical replication launcher, logical replication worker, parallel worker, background writer, client backend, checkpointer, archiver, standalone backend, startup, walreceiver, walsender, walwriter 以及 walsummarizer。 此外,由扩展注册的后台工作进程还可能有额外的类型。

演化历史

相邻两个大版本之间的差异,新的在前。版本号链到该版的字段表。

  1. PostgreSQL 18 ← 17 仅描述更新

    1 处描述更新
    • backend_xid Top-level transaction identifier of this backend, if any; see Section 66.1. Top-level transaction identifier of this backend, if any; see Section 67.1.
  2. PostgreSQL 17 ← 16 仅描述更新

    关系说明更新

    4 处描述更新
    • backend_type Type of current backend. Possible types are autovacuum launcher, autovacuum worker, logical replication launcher, logical replication worker, parallel worker, background writer, client backend, checkpointer, archiver, standalone backend, startup, walreceiver, walsender and walwriter. In addition, background workers registered by extensions may have additional types. Type of current backend. Possible types are autovacuum launcher, autovacuum worker, logical replication launcher, logical replication worker, parallel worker, background writer, client backend, checkpointer, archiver, standalone backend, startup, walreceiver, walsender, walwriter and walsummarizer. In addition, background workers registered by extensions may have additional types.
    • backend_xid Top-level transaction identifier of this backend, if any; see Section 74.1. Top-level transaction identifier of this backend, if any; see Section 66.1.
    • wait_event Wait event name if backend is currently waiting, otherwise NULL. See Table 28.5 through Table 28.13. Wait event name if backend is currently waiting, otherwise NULL. See Table 27.5 through Table 27.13.
    • wait_event_type The type of event for which the backend is waiting, if any; otherwise NULL. See Table 28.4. The type of event for which the backend is waiting, if any; otherwise NULL. See Table 27.4.
  3. PostgreSQL 16 ← 15 仅描述更新

    3 处描述更新
    • backend_type Type of current backend. Possible types are autovacuum launcher, autovacuum worker, logical replication launcher, logical replication worker, parallel worker, background writer, client backend, checkpointer, archiver, startup, walreceiver, walsender and walwriter. In addition, background workers registered by extensions may have additional types. Type of current backend. Possible types are autovacuum launcher, autovacuum worker, logical replication launcher, logical replication worker, parallel worker, background writer, client backend, checkpointer, archiver, standalone backend, startup, walreceiver, walsender and walwriter. In addition, background workers registered by extensions may have additional types.
    • backend_xid Top-level transaction identifier of this backend, if any. Top-level transaction identifier of this backend, if any; see Section 74.1.
    • leader_pid Process ID of the parallel group leader, if this process is a parallel query worker. NULL if this process is a parallel group leader or does not participate in parallel query. Process ID of the parallel group leader if this process is a parallel query worker, or process ID of the leader apply worker if this process is a parallel apply worker. NULL indicates that this process is a parallel group leader or leader apply worker, or does not participate in any parallel operation.
  4. PostgreSQL 14 ← 13 结构变更

    query_id

    3 处描述更新
    • backend_type Type of current backend. Possible types are autovacuum launcher, autovacuum worker, logical replication launcher, logical replication worker, parallel worker, background writer, client backend, checkpointer, startup, walreceiver, walsender and walwriter. In addition, background workers registered by extensions may have additional types. Type of current backend. Possible types are autovacuum launcher, autovacuum worker, logical replication launcher, logical replication worker, parallel worker, background writer, client backend, checkpointer, archiver, startup, walreceiver, walsender and walwriter. In addition, background workers registered by extensions may have additional types.
    • wait_event Wait event name if backend is currently waiting, otherwise NULL. See Table 27.5 through Table 27.13. Wait event name if backend is currently waiting, otherwise NULL. See Table 28.5 through Table 28.13.
    • wait_event_type The type of event for which the backend is waiting, if any; otherwise NULL. See Table 27.4. The type of event for which the backend is waiting, if any; otherwise NULL. See Table 28.4.
  5. PostgreSQL 13 ← 12 结构变更

    leader_pid 关系说明更新

    4 处描述更新
    • client_port TCP port number that the client is using for communication with this backend, or -1 if a Unix socket is used TCP port number that the client is using for communication with this backend, or -1 if a Unix socket is used. If this field is null, it indicates that this is an internal server process.
    • state Current overall state of this backend. Possible values are: active: The backend is executing a query. idle: The backend is waiting for a new client command. idle in transaction: The backend is in a transaction, but is not currently executing a query. idle in transaction (aborted): This state is similar to idle in transaction, except one of the statements in the transaction caused an error. fastpath function call: The backend is executing a fast-path function. disabled: This state is reported if track_activities is disabled in this backend. Current overall state of this backend. Possible values are:
    • wait_event Wait event name if backend is currently waiting, otherwise NULL. See Table 27.4 for details. Wait event name if backend is currently waiting, otherwise NULL. See Table 27.5 through Table 27.13.
    • wait_event_type The type of event for which the backend is waiting, if any; otherwise NULL. Possible values are: LWLock: The backend is waiting for a lightweight lock. Each such lock protects a particular data structure in shared memory. wait_event will contain a name identifying the purpose of the lightweight lock. (Some locks have specific names; others are part of a group of locks each with a similar purpose.) Lock: The backend is waiting for a heavyweight lock. Heavyweight locks, also known as lock manager locks or simply locks, primarily protect SQL-visible objects such as tables. However, they are also used to ensure mutual exclusion for certain internal operations such as relation extension. wait_event will identify the type of lock awaited. BufferPin: The server process is waiting to access to a data buffer during a period when no other process can be examining that buffer. Buffer pin waits can be protracted if another process holds an open cursor which last read data from the buffer in question. Activity: The server process is idle. This is used by system processes waiting for activity in their main processing loop. wait_event will identify the specific wait point. Extension: The server process is waiting for activity in an extension module. This category is useful for modules to track custom waiting points. Client: The server process is waiting for some activity on a socket from user applications, and that the server expects something to happen that is independent from its internal processes. wait_event will identify the specific wait point. IPC: The server process is waiting for some activity from another process in the server. wait_event will identify the specific wait point. Timeout: The server process is waiting for a timeout to expire. wait_event will identify the specific wait point. IO: The server process is waiting for a IO to complete. wait_event will identify the specific wait point. The type of event for which the backend is waiting, if any; otherwise NULL. See Table 27.4.
  6. PostgreSQL 12 ← 11 仅描述更新

    关系说明更新

    1 处描述更新
    • wait_event Wait event name if backend is currently waiting, otherwise NULL. See Table 28.4 for details. Wait event name if backend is currently waiting, otherwise NULL. See Table 27.4 for details.
  7. PostgreSQL 11 ← 10 仅描述更新

    1 处描述更新
    • backend_type Type of current backend. Possible types are autovacuum launcher, autovacuum worker, background worker, background writer, client backend, checkpointer, startup, walreceiver, walsender and walwriter. Type of current backend. Possible types are autovacuum launcher, autovacuum worker, logical replication launcher, logical replication worker, parallel worker, background writer, client backend, checkpointer, startup, walreceiver, walsender and walwriter. In addition, background workers registered by extensions may have additional types.
  8. PostgreSQL 10 ← 9.6 结构变更

    backend_type 关系说明更新

    4 处描述更新
    • backend_start Time when this process was started, i.e., when the client connected to the server Time when this process was started. For client backends, this is the time the client connected to the server.
    • query Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. Text of this backend's most recent query. If state is active this field shows the currently executing query. In all other states, it shows the last query that was executed. By default the query text is truncated at 1024 bytes; this value can be changed via the parameter track_activity_query_size.
    • wait_event Wait event name if backend is currently waiting, otherwise NULL. See Table 28-4 for details. Wait event name if backend is currently waiting, otherwise NULL. See Table 28.4 for details.
    • wait_event_type The type of event for which the backend is waiting, if any; otherwise NULL. Possible values are: LWLockNamed: The backend is waiting for a specific named lightweight lock. Each such lock protects a particular data structure in shared memory. wait_event will contain the name of the lightweight lock. LWLockTranche: The backend is waiting for one of a group of related lightweight locks. All locks in the group perform a similar function; wait_event will identify the general purpose of locks in that group. Lock: The backend is waiting for a heavyweight lock. Heavyweight locks, also known as lock manager locks or simply locks, primarily protect SQL-visible objects such as tables. However, they are also used to ensure mutual exclusion for certain internal operations such as relation extension. wait_event will identify the type of lock awaited. BufferPin: The server process is waiting to access to a data buffer during a period when no other process can be examining that buffer. Buffer pin waits can be protracted if another process holds an open cursor which last read data from the buffer in question. The type of event for which the backend is waiting, if any; otherwise NULL. Possible values are: LWLock: The backend is waiting for a lightweight lock. Each such lock protects a particular data structure in shared memory. wait_event will contain a name identifying the purpose of the lightweight lock. (Some locks have specific names; others are part of a group of locks each with a similar purpose.) Lock: The backend is waiting for a heavyweight lock. Heavyweight locks, also known as lock manager locks or simply locks, primarily protect SQL-visible objects such as tables. However, they are also used to ensure mutual exclusion for certain internal operations such as relation extension. wait_event will identify the type of lock awaited. BufferPin: The server process is waiting to access to a data buffer during a period when no other process can be examining that buffer. Buffer pin waits can be protracted if another process holds an open cursor which last read data from the buffer in question. Activity: The server process is idle. This is used by system processes waiting for activity in their main processing loop. wait_event will identify the specific wait point. Extension: The server process is waiting for activity in an extension module. This category is useful for modules to track custom waiting points. Client: The server process is waiting for some activity on a socket from user applications, and that the server expects something to happen that is independent from its internal processes. wait_event will identify the specific wait point. IPC: The server process is waiting for some activity from another process in the server. wait_event will identify the specific wait point. Timeout: The server process is waiting for a timeout to expire. wait_event will identify the specific wait point. IO: The server process is waiting for a IO to complete. wait_event will identify the specific wait point.
  9. PostgreSQL 9.6 ← 9.5 结构变更

    wait_event_typewait_event waiting 关系说明更新

  10. PostgreSQL 9.5 ← 9.4 仅描述更新

    关系说明更新

  11. PostgreSQL 9.4 ← 9.3 结构变更

    backend_xidbackend_xmin 关系说明更新

  12. PostgreSQL 9.2 ← 9.1 结构变更

    pidstate_changestatequery procpidcurrent_query 关系说明更新

    2 处描述更新
    • client_hostname Host name of the connected client, as reported by a reverse DNS lookup of client_addr . This field will only be non-null for IP connections, and only when log_hostname is enabled. Host name of the connected client, as reported by a reverse DNS lookup of client_addr. This field will only be non-null for IP connections, and only when log_hostname is enabled.
    • query_start Time when the currently active query was started, or if state is not active , when the last query was started Time when the currently active query was started, or if state is not active, when the last query was started
  13. PostgreSQL 9.1 ← 9.0 结构变更

    client_hostname 关系说明更新

字段矩阵

每个字段在 18 个收录版本里的存在情况;方格指向该版的字段表。「有变」指类型、可空、隐式或数组维数与上一版不同。

存在 有变 已移除 不存在

字段 9.09.19.29.39.49.59.61011121314151617181920
datid 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
datname 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
procpid 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
usesysid 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
usename 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
application_name 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
client_addr 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
client_port 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
backend_start 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
xact_start 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
query_start 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
waiting 存在 存在 存在 存在 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
current_query 存在 存在 已移除 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在
client_hostname 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
pid 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
state_change 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
state 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
query 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
backend_xid 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
backend_xmin 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
wait_event_type 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
wait_event 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
backend_type 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在 存在
leader_pid 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在 存在
query_id 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 不存在 存在 存在 存在 存在 存在 存在 存在

同类关系

关系 引入 字段 版本变动 最近变更
STATISTICS VIEW 统计视图 41 个
pg_stat_activity 9.0基线 22 147 次
每个服务器进程一行,显示与该进程当前活动相关的信息,例如状态和当前查询。有关详细信息,请参阅pg_stat_activity。 现存
pg_stat_all_indexes 9.0基线 10 192 次
当前数据库中的每个索引一行,显示有关访问该特定索引的统计信息。有关详细信息,请参阅pg_stat_all_indexes。 现存
pg_stat_all_tables 9.0基线 31 196 次
当前数据库中每个表一行,显示有关访问指定表的统计信息。详见 pg_stat_all_tables。 现存
pg_stat_archiver 9.4 7
只有一行,显示有关 WAL 归档进程活动的信息。有关详细信息,请参阅pg_stat_archiver。 现存
pg_stat_autovacuum_scores 19 12
当前数据库中的每个表一行,显示该表当前的自动清理评分。有关详细信息,请参阅pg_stat_autovacuum_scores。 现存
pg_stat_bgwriter 9.0基线 4 173 次
只有一行,显示有关后台写入器活动的信息。有关详细信息,请参阅pg_stat_bgwriter。 现存
pg_stat_checkpointer 17 11 181 次
只有一行,显示有关检查点进程活动的信息。有关详细信息,请参阅pg_stat_checkpointer。 现存
pg_stat_database 9.0基线 30 185 次
每个数据库一行,显示数据库范围的统计信息。有关详细信息,请参阅pg_stat_database。 现存
pg_stat_database_conflicts 9.1 9 192 次
每个数据库一行,显示数据库范围内因备库上的恢复冲突而导致查询被取消的统计信息。有关详细信息,请参阅pg_stat_database_conflicts。 现存
pg_stat_gssapi 12 5 161 次
每个连接(常规连接和复制连接)一行,显示有关该连接上使用的 GSSAPI 认证和加密的信息。有关详细信息,请参阅pg_stat_gssapi。 现存
pg_stat_io 16 20 181 次
对于每种后端类型、上下文和目标对象的组合各有一行,包含集簇范围的 I/O 统计信息。有关详细信息,请参阅pg_stat_io。 现存
pg_stat_kind_info 20 7
每个已注册的统计信息类型一行,显示各类型的信息。详见pg_stat_kind_info。 现存
pg_stat_lock 19 5
每种锁类型一行,显示集簇范围的锁统计信息。有关详细信息,请参阅pg_stat_lock。 现存
pg_stat_recovery 19 9
至多一行,显示有关恢复状态的统计信息。有关详细信息,请参阅pg_stat_recovery。 现存
pg_stat_recovery_prefetch 15 10
只有一行,显示了恢复过程中预取的块的统计信息。 详细信息请参见 pg_stat_recovery_prefetch。 现存
pg_stat_replication 9.1 20 124 次
每个 WAL 发送进程一行,显示有关复制到该发送进程所连接备库的统计信息。有关详细信息,请参阅pg_stat_replication。 现存
pg_stat_replication_slots 14 13 191 次
每个复制槽一行,显示有关复制槽使用情况的统计信息。有关详细信息,请参阅pg_stat_replication_slots。 现存
pg_stat_slru 13 9
每个 SLRU 一行,显示操作统计信息。有关详细信息,请参阅pg_stat_slru。 现存
pg_stat_ssl 9.5 8 142 次
每个连接(常规连接和复制连接)一行,显示有关该连接上使用的 SSL 的信息。有关详细信息,请参阅pg_stat_ssl。 现存
pg_stat_subscription 10 11 172 次
每个订阅至少一行,显示有关订阅工作进程的信息。有关详细信息,请参阅pg_stat_subscription。 现存
pg_stat_subscription_stats 15 14 192 次
每个订阅一行,显示有关错误和冲突的统计信息。有关详细信息,请参阅pg_stat_subscription_stats。 现存
pg_stat_sys_indexes 9.0基线 10 192 次
和pg_stat_all_indexes一样,但只显示系统表上的索引。 现存
pg_stat_sys_tables 9.0基线 31 196 次
和pg_stat_all_tables一样,但只显示系统表。 现存
pg_stat_user_functions 9.0基线 7 192 次
每个被跟踪的函数一行,显示有关该函数执行的统计信息。有关详细信息,请参阅pg_stat_user_functions。 现存
pg_stat_user_indexes 9.0基线 10 192 次
和pg_stat_all_indexes一样,但只显示用户表上的索引。 现存
pg_stat_user_tables 9.0基线 31 196 次
和pg_stat_all_tables一样,但只显示用户表。 现存
pg_stat_wal 14 6 192 次
只有一行,显示有关 WAL 活动的统计信息。有关详细信息,请参阅pg_stat_wal。 现存
pg_stat_wal_receiver 9.6 15 132 次
只有一行,显示有关 WAL 接收进程从其连接服务器接收到的统计信息。有关详细信息,请参阅pg_stat_wal_receiver。 现存
pg_stat_xact_all_tables 9.1 12 161 次
和pg_stat_all_tables相似,但计数动作只在当前事务内发生(还没有被包括在pg_stat_all_tables和相关视图中)。用于生存和死亡行数量的列以及清理和分析动作在此视图中不出现。 现存
pg_stat_xact_sys_tables 9.1 12 161 次
和pg_stat_xact_all_tables一样,但只显示系统表。 现存
pg_stat_xact_user_functions 9.1 6 9.21 次
和pg_stat_user_functions相似,但是只统计在当前事务期间的调用(还没有被包括在pg_stat_user_functions中)。 现存
pg_stat_xact_user_tables 9.1 12 161 次
和pg_stat_xact_all_tables一样,但只显示用户表。 现存
pg_statio_all_indexes 9.0基线 8 191 次
当前数据库中的每个索引一行,显示有关访问该特定索引的 I/O 统计信息。有关详细信息,请参阅pg_statio_all_indexes。 现存
pg_statio_all_sequences 9.0基线 6 191 次
当前数据库中的每个序列一行,显示有关访问该特定序列的 I/O 统计信息。有关详细信息,请参阅pg_statio_all_sequences。 现存
pg_statio_all_tables 9.0基线 12 191 次
当前数据库中的每个表一行,显示有关访问该特定表的 I/O 统计信息。有关详细信息,请参阅pg_statio_all_tables。 现存
pg_statio_sys_indexes 9.0基线 8 191 次
和pg_statio_all_indexes一样,但只显示系统表上的索引。 现存
pg_statio_sys_sequences 9.0基线 6 191 次
和pg_statio_all_sequences一样,但只显示系统序列(目前没有定义系统序列,因此这个视图总是为空)。 现存
pg_statio_sys_tables 9.0基线 12 191 次
和pg_statio_all_tables一样,但只显示系统表。 现存
pg_statio_user_indexes 9.0基线 8 191 次
和pg_statio_all_indexes一样,但只显示用户表上的索引。 现存
pg_statio_user_sequences 9.0基线 6 191 次
和pg_statio_all_sequences一样,但只显示用户序列。 现存
pg_statio_user_tables 9.0基线 12 191 次
和pg_statio_all_tables一样,但只显示用户表。 现存