pg_statio_all_sequences

显示每个序列的 I/O 统计信息的统计视图

pg_statio_all_sequences 是一个 统计视图,显示当前数据库中每个序列的 I/O 统计信息。

pg_statio_all_sequences 添加于 PostgreSQL 7.2

按 PostgreSQL 版本定义

pg_statio_all_sequences (PostgreSQL 17)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 16)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 15)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 14)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 13)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 12)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 11)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 10)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 9.6)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 9.5)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 9.4)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 9.3)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 9.2)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 9.1)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 9.0)

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

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 8.4)

View "pg_catalog.pg_statio_all_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint | 
View definition:
 SELECT c.oid AS relid, n.nspname AS schemaname, c.relname, pg_stat_get_blocks_fetched(c.oid) - pg_stat_get_blocks_hit(c.oid) AS blks_read, pg_stat_get_blocks_hit(c.oid) AS blks_hit
   FROM pg_class c
   LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
  WHERE c.relkind = 'S'::"char";
    

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 8.3)

View "pg_catalog.pg_statio_all_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint | 
View definition:
 SELECT c.oid AS relid, n.nspname AS schemaname, c.relname, pg_stat_get_blocks_fetched(c.oid) - pg_stat_get_blocks_hit(c.oid) AS blks_read, pg_stat_get_blocks_hit(c.oid) AS blks_hit
   FROM pg_class c
   LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
  WHERE c.relkind = 'S'::"char";
    

文档: pg_statio_all_sequences

pg_statio_all_sequences (PostgreSQL 8.2)

View "pg_catalog.pg_statio_all_sequences"
   Column   |  Type  | Modifiers 
------------+--------+-----------
 relid      | oid    | 
 schemaname | name   | 
 relname    | name   | 
 blks_read  | bigint | 
 blks_hit   | bigint | 
View definition:
 SELECT c.oid AS relid, n.nspname AS schemaname, c.relname, pg_stat_get_blocks_fetched(c.oid) - pg_stat_get_blocks_hit(c.oid) AS blks_read, pg_stat_get_blocks_hit(c.oid) AS blks_hit
   FROM pg_class c
   LEFT JOIN pg_namespace n ON n.oid = c.relnamespace
  WHERE c.relkind = 'S'::"char";
    

文档: pg_statio_all_sequences

更改历史记录

示例

pg_statio_all_sequences 的示例内容

postgres=# SELECT * FROM pg_statio_all_sequences WHERE relname LIKE 'object%'; 
 relid | schemaname |                relname                 | blks_read | blks_hit 
-------+------------+----------------------------------------+-----------+----------
 16967 | app        | object_access_tracking_oat_id_seq      |        14 |  2934900
 17041 | app        | object_category_ref_ocr_id_seq         |        66 |     1028
 17043 | app        | object_object_id_seq                   |        63 |     1022
 17052 | app        | object_property_object_property_id_seq |        51 |   125041
 17091 | app        | object_version_object_version_id_seq   |        73 |    11762
(5 rows)

分类

序列统计/监控视图

另请参阅

pg_statio_sys_sequencespg_statio_user_sequences

反馈

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