pg_statio_sys_sequences

一个[显示每个系统序列的 IO 统计信息的统计视图

pg_statio_sys_sequences 是一个 统计视图,显示当前数据库中每个系统序列的 IO 统计信息。

pg_statio_sys_sequencesPostgreSQL 7.2 中添加。

用法

请注意,从 PostgreSQL 14 开始,没有定义系统序列,因此此视图将始终为空。

按 PostgreSQL 版本定义

pg_statio_sys_sequences (PostgreSQL 17)

      View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Collation | Nullable | Default 
------------+--------+-----------+----------+---------
 relid      | oid    |           |          | 
 schemaname | name   |           |          | 
 relname    | name   |           |          | 
 blks_read  | bigint |           |          | 
 blks_hit   | bigint |           |          |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 16)

      View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Collation | Nullable | Default 
------------+--------+-----------+----------+---------
 relid      | oid    |           |          | 
 schemaname | name   |           |          | 
 relname    | name   |           |          | 
 blks_read  | bigint |           |          | 
 blks_hit   | bigint |           |          |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 15)

      View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Collation | Nullable | Default 
------------+--------+-----------+----------+---------
 relid      | oid    |           |          | 
 schemaname | name   |           |          | 
 relname    | name   |           |          | 
 blks_read  | bigint |           |          | 
 blks_hit   | bigint |           |          |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 14)

      View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Collation | Nullable | Default 
------------+--------+-----------+----------+---------
 relid      | oid    |           |          | 
 schemaname | name   |           |          | 
 relname    | name   |           |          | 
 blks_read  | bigint |           |          | 
 blks_hit   | bigint |           |          |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 13)

      View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Collation | Nullable | Default 
------------+--------+-----------+----------+---------
 relid      | oid    |           |          | 
 schemaname | name   |           |          | 
 relname    | name   |           |          | 
 blks_read  | bigint |           |          | 
 blks_hit   | bigint |           |          |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 12)

      View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Collation | Nullable | Default 
------------+--------+-----------+----------+---------
 relid      | oid    |           |          | 
 schemaname | name   |           |          | 
 relname    | name   |           |          | 
 blks_read  | bigint |           |          | 
 blks_hit   | bigint |           |          |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 11)

      View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Collation | Nullable | Default 
------------+--------+-----------+----------+---------
 relid      | oid    |           |          | 
 schemaname | name   |           |          | 
 relname    | name   |           |          | 
 blks_read  | bigint |           |          | 
 blks_hit   | bigint |           |          |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 10)

      View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Collation | Nullable | Default 
------------+--------+-----------+----------+---------
 relid      | oid    |           |          | 
 schemaname | name   |           |          | 
 relname    | name   |           |          | 
 blks_read  | bigint |           |          | 
 blks_hit   | bigint |           |          |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 9.6)

View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 9.5)

View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 9.4)

View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 9.3)

View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 9.2)

View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 9.1)

View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 9.0)

View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint |
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 8.4)

View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint | 
View definition:
 SELECT pg_statio_all_sequences.relid, pg_statio_all_sequences.schemaname, pg_statio_all_sequences.relname, pg_statio_all_sequences.blks_read, pg_statio_all_sequences.blks_hit
   FROM pg_statio_all_sequences
  WHERE (pg_statio_all_sequences.schemaname = ANY (ARRAY['pg_catalog'::name, 'information_schema'::name])) OR pg_statio_all_sequences.schemaname ~ '^pg_toast'::text;
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 8.3)

View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint | 
View definition:
 SELECT pg_statio_all_sequences.relid, pg_statio_all_sequences.schemaname, pg_statio_all_sequences.relname, pg_statio_all_sequences.blks_read, pg_statio_all_sequences.blks_hit
   FROM pg_statio_all_sequences
  WHERE (pg_statio_all_sequences.schemaname = ANY (ARRAY['pg_catalog'::name, 'information_schema'::name])) OR pg_statio_all_sequences.schemaname ~ '^pg_toast'::text;
    

文档: pg_statio_sys_sequences

pg_statio_sys_sequences (PostgreSQL 8.2)

View "pg_catalog.pg_statio_sys_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint | 
View definition:
 SELECT pg_statio_all_sequences.relid, pg_statio_all_sequences.schemaname, pg_statio_all_sequences.relname, pg_statio_all_sequences.blks_read, pg_statio_all_sequences.blks_hit
   FROM pg_statio_all_sequences
  WHERE pg_statio_all_sequences.schemaname = ANY (ARRAY['pg_catalog'::name, 'pg_toast'::name, 'information_schema'::name]);
    

文档: pg_statio_sys_sequences

变更历史

分类

序列, 统计/监控视图

另请参阅

pg_statio_all_sequences, pg_statio_user_sequences

反馈

提交关于 "pg_statio_sys_sequences" 的任何评论、建议或更正 此处