<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                > `pg_stat_all_indexes`視圖將為當前數據庫中的每個索引包含一行,該行顯示關于對該索引訪問的統計信息。`pg_stat_user_indexes`和`pg_stat_sys_indexes`視圖包含相同的信息,但是被過濾得只分別顯示用戶和系統索引 > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;通過`pg_stat_user_indexes`可以知道當前數據庫中哪些是用的很頻繁的索引,哪些是無效索引,無效索引可以進行刪除,可以減少磁盤空間的使用和提升INSERT,UPDATE,DELETE性能。 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;索引可以被簡單索引掃描、“位圖”索引掃描以及優化器使用。在一次位圖掃描中,多個索引的輸出可以被通過 AND 或 OR 規則組合,因此當使用一次位圖掃描時難以將取得的個體堆行與特定的索引關聯起來。因此,一次位圖掃描會增加它使用的索引的`pg_stat_all_indexes`.`idx_tup_read`計數,并且為每個表增加`pg_stat_all_tables`.`idx_tup_fetch`計數,但是它不影響`pg_stat_all_indexes`.`idx_tup_fetch`。如果所提供的常量值不在優化器統計信息記錄的范圍之內,優化器也會訪問索引來檢查,因為優化器統計信息可能已經“不新鮮”了。 | 列名 | 示例值 | 說明 | | --- | --- | --- | | relid | 16384 | 表的OID | | indexrelid | 16387 | 索引的OID | | schemaname | public | 模式名 | | relname | test | 表名 | | indexrelname | test_pkey | 索引名 | | idx\_scan | 2005 | 通過索引掃描的次數,如果這個值很小,說明這個索引很少被用到,可以考慮進行刪除。 | | idx\_tup\_read | 202003 | 通過任意索引方法返回的索引行數 | | idx\_tup\_fetch | 202003 | 通過索引方法返回的數據行數 | ``` postgres=# select * from pg_stat_all_indexes; relid | indexrelid | schemaname | relname | indexrelname | idx_scan | idx_tup_read | idx_tup_fetch -------+------------+------------+-------------------------+-----------------------------------------------+----------+--------------+--------------- 16535 | 16537 | pg_toast | pg_toast_16532 | pg_toast_16532_index | 0 | 0 | 0 16532 | 16538 | public | goods | goods_pkey | 1008 | 1008 | 1008 16384 | 16387 | public | test | test_pkey | 2005 | 202003 | 202003 16397 | 16399 | pg_toast | pg_toast_16391 | pg_toast_16391_index | 0 | 0 | 0 16391 | 16400 | public | alerts | index_attack_alarm_attack_result | 2 | 20169 | 40 16391 | 16401 | public | alerts | index_attack_alarm_attack_type | 0 | 0 | 0 16391 | 16402 | public | alerts | index_attack_alarm_suffer_branch_id | 0 | 0 | 0 16391 | 16404 | public | alerts | index_attack_alarm_last_time | 0 | 0 | 0 16391 | 16405 | public | alerts | index_attack_alarm_priority | 13 | 15020 | 0 16391 | 16406 | public | alerts | index_attack_alarm_reliability | 14 | 1018925 | 0 16391 | 16407 | public | alerts | index_attack_alarm_rule_id | 0 | 0 | 0 16391 | 16408 | public | alerts | index_attack_alarm_sub_attack_type | 0 | 0 | 0 16391 | 16409 | public | alerts | attack_alarm_pkey | 1172 | 1011218 | 1223 4159 | 4160 | pg_toast | pg_toast_2600 | pg_toast_2600_index | 0 | 0 | 0 2830 | 2831 | pg_toast | pg_toast_2604 | pg_toast_2604_index | 0 | 0 | 0 ... ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看