11< ?xml version="1.0" encoding="UTF-8" standalone="no"?>
2- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns ="http://www.w3.org/1999/xhtml "> < head > < meta http-equiv ="Content-Type " content ="text/html; charset=UTF-8 " /> < title > F.1. amcheck — テーブルとインデックスの一貫性を検査するツール</ title > < link rel ="stylesheet " type ="text/css " href ="stylesheet.css " /> < link rev ="made " href ="pgsql-docs@lists.postgresql.org " /> < meta name ="generator " content ="DocBook XSL Stylesheets Vsnapshot " /> < link rel ="prev " href ="contrib.html " title ="付録F 追加で提供されるモジュールと拡張 " /> < link rel ="next " href ="auth-delay.html " title ="F.2. auth_delay — 認証エラー時に一時停止 " /> < meta name ="viewport " content ="width=device-width,initial-scale=1.0 " /> </ head > < body id ="docContent " class ="container-fluid col-10 "> < div class ="other_version "> < a href ="https://www.postgresql.jp/document/ "> バージョンごとのドキュメント一覧</ a > </ div > < div class ="navheader "> < table width ="100% " summary ="Navigation header "> < tr > < th colspan ="4 " align ="center "> < a accesskey ="h " href ="index.html "> PostgreSQL 18.0文書</ a > </ th > </ tr > < tr > < td width ="10% " align ="left "> </ td > < td width ="10% " align ="left "> </ td > < td width ="60% " align ="center "> < a href ="contrib.html " title ="付録F 追加で提供されるモジュールと拡張 "> 付録F 追加で提供されるモジュールと拡張</ a > </ td > < td width ="20% " align ="right "> < div class ="actions "> < a class ="issue " title ="github " href ="https://github.com/pgsql-jp/jpug-doc/issues/new?template=bug_report.yml&what-happened=version 18.0 : amcheck.html "> 誤訳等の報告
2+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < html xmlns ="http://www.w3.org/1999/xhtml "> < head > < meta http-equiv ="Content-Type " content ="text/html; charset=UTF-8 " /> < title > F.1. amcheck — テーブルとインデックスの一貫性を検査するツール</ title > < link rel ="stylesheet " type ="text/css " href ="stylesheet.css " /> < link rev ="made " href ="pgsql-docs@lists.postgresql.org " /> < meta name ="generator " content ="DocBook XSL Stylesheets Vsnapshot " /> < link rel ="prev " href ="contrib.html " title ="付録F 追加で提供されるモジュールと拡張 " /> < link rel ="next " href ="auth-delay.html " title ="F.2. auth_delay — 認証エラー時に一時停止 " /> < meta name ="viewport " content ="width=device-width,initial-scale=1.0 " /> </ head > < body id ="docContent " class ="container-fluid col-10 "> < div class ="other_version "> < a href ="https://www.postgresql.jp/document/ "> バージョンごとのドキュメント一覧</ a > </ div > < div class ="navheader "> < table width ="100% " summary ="Navigation header "> < tr > < th colspan ="4 " align ="center "> < a accesskey ="h " href ="index.html "> PostgreSQL 18.2文書</ a > </ th > </ tr > < tr > < td width ="10% " align ="left "> </ td > < td width ="10% " align ="left "> </ td > < td width ="60% " align ="center "> < a href ="contrib.html " title ="付録F 追加で提供されるモジュールと拡張 "> 付録F 追加で提供されるモジュールと拡張</ a > </ td > < td width ="20% " align ="right "> < div class ="actions "> < a class ="issue " title ="github " href ="https://github.com/pgsql-jp/jpug-doc/issues/new?template=bug_report.yml&what-happened=version 18.2 : amcheck.html "> 誤訳等の報告
33 </ a > </ div > </ td > </ tr > < tr > < td width ="10% " align ="left "> < a accesskey ="p " href ="contrib.html " title ="付録F 追加で提供されるモジュールと拡張 "> 前へ</ a > </ td > < td width ="10% " align ="left "> < a accesskey ="u " href ="contrib.html " title ="付録F 追加で提供されるモジュールと拡張 "> 上へ</ a > </ td > < td width ="60% " align ="center "> F.1. amcheck — テーブルとインデックスの一貫性を検査するツール</ td > < td width ="20% " align ="right "> < a accesskey ="n " href ="auth-delay.html " title ="F.2. auth_delay — 認証エラー時に一時停止 "> 次へ</ a > </ td > </ tr > </ table > < hr /> </ div > < div class ="sect1 " id ="AMCHECK "> < div class ="titlepage "> < div > < div > < h2 class ="title " style ="clear: both "> F.1. amcheck — テーブルとインデックスの一貫性を検査するツール < a href ="#AMCHECK " class ="id_link "> #</ a > </ h2 > </ div > </ div > </ div > < span class ="original ">
44 <title>amcheck &mdash; tools to verify table and index consistency</title>
55</ span > < a id ="id-1.11.7.11.2 " class ="indexterm "> </ a > < p >
390390 verification functions is <literal>true</literal>, an additional
391391 phase of verification is performed against the table associated with
392392 the target index relation. This consists of a <quote>dummy</quote>
393- <command>CREATE INDEX</command> operation, which checks for the
393+ <command>CREATE INDEX CONCURRENTLY </command> operation, which checks for the
394394 presence of all hypothetical new index tuples against a temporary,
395395 in-memory summarizing structure (this is built when needed during
396396 the basic first phase of verification). The summarizing structure
401401 have entries that can be found in the existing structure.
402402</ span >
403403B-Tree検証関数の< em class ="parameter "> < code > heapallindexed</ code > </ em > 引数が< code class ="literal "> true</ code > ならば、対象のインデックスリレーションと関連付けられたテーブルに対して追加の検証フェーズが実施されます。
404- これは< span class ="quote "> 「< span class ="quote "> ダミー</ span > 」</ span > の< code class ="command "> CREATE INDEX</ code > 操作から構成され、インメモリ上の一時的なサマリ構造(これは必要に応じて基礎的な最初の検証フェーズで構築されます)に対する仮想的な新しいインデックスタプルがすべて存在することをチェックします。
404+ これは< span class ="quote "> 「< span class ="quote "> ダミー</ span > 」</ span > の< code class ="command "> CREATE INDEX CONCURRENTLY </ code > 操作から構成され、インメモリ上の一時的なサマリ構造(これは必要に応じて基礎的な最初の検証フェーズで構築されます)に対する仮想的な新しいインデックスタプルがすべて存在することをチェックします。
405405サマリ構造は対象のインデックスで見つかったすべてのタプルに対して< span class ="quote "> 「< span class ="quote "> 指紋採取(fingerprint)</ span > 」</ span > を行います。
406406< em class ="parameter "> < code > heapallindexed</ code > </ em > 検証の背後にある高レベルの原理は、新しいインデックスが既存のインデックスと等しいこと、対象のインデックスが既存の構造中に見つかったエントリのみを含むことです。
407407 </ p > < p >
430430 single absent or malformed tuple has a new opportunity to be
431431 detected with each new verification attempt.
432432</ span >
433- サマライズ構造は 、< code class ="varname "> maintenance_work_mem</ code > によってその大きさが制限されます。
433+ サマリ構造は 、< code class ="varname "> maintenance_work_mem</ code > によってその大きさが制限されます。
434434インデックス中に存在すべきヒープタプルの非一貫性の検出失敗の確率が2%を超えないことを保証するために、タプルごとに約2バイトのメモリが必要です。
435435タプルごとに利用可能なメモリが少ないほど、非一貫性を見逃す可能性が徐々に増えていきます。
436436この手法によって検証のオーバーヘッドを大幅に減らせる一方、とりわけ検証を日常的な保守作業として行うシステムでは、問題を検出できる確率が少し減少するだけです。
647647不変条件違反の根本的な原因の説明が求められます。
648648< code class ="filename "> amcheck</ code > が検出した破損の診断には、< a class ="xref " href ="pageinspect.html " title ="F.23. pageinspect — データベースページの低レベルな調査 "> pageinspect</ a > が有用な役割を担うかもしれません。
649649< code class ="command "> REINDEX</ code > は破損の修復には効果的ではないかもしれません。
650- </ p > </ div > </ div > < div class ="navfooter "> < hr /> < table width ="100% " summary ="Navigation footer "> < tr > < td width ="40% " align ="left "> < a accesskey ="p " href ="contrib.html " title ="付録F 追加で提供されるモジュールと拡張 "> 前へ</ a > </ td > < td width ="20% " align ="center "> < a accesskey ="u " href ="contrib.html " title ="付録F 追加で提供されるモジュールと拡張 "> 上へ</ a > </ td > < td width ="40% " align ="right "> < a accesskey ="n " href ="auth-delay.html " title ="F.2. auth_delay — 認証エラー時に一時停止 "> 次へ</ a > </ td > </ tr > < tr > < td width ="40% " align ="left " valign ="top "> 付録F 追加で提供されるモジュールと拡張 </ td > < td width ="20% " align ="center "> < a accesskey ="h " href ="index.html " title ="PostgreSQL 18.0文書 "> ホーム</ a > </ td > < td width ="40% " align ="right " valign ="top "> F.2. auth_delay — 認証エラー時に一時停止</ td > </ tr > </ table > </ div > </ body > </ html >
650+ </ p > </ div > </ div > < div class ="navfooter "> < hr /> < table width ="100% " summary ="Navigation footer "> < tr > < td width ="40% " align ="left "> < a accesskey ="p " href ="contrib.html " title ="付録F 追加で提供されるモジュールと拡張 "> 前へ</ a > </ td > < td width ="20% " align ="center "> < a accesskey ="u " href ="contrib.html " title ="付録F 追加で提供されるモジュールと拡張 "> 上へ</ a > </ td > < td width ="40% " align ="right "> < a accesskey ="n " href ="auth-delay.html " title ="F.2. auth_delay — 認証エラー時に一時停止 "> 次へ</ a > </ td > </ tr > < tr > < td width ="40% " align ="left " valign ="top "> 付録F 追加で提供されるモジュールと拡張 </ td > < td width ="20% " align ="center "> < a accesskey ="h " href ="index.html " title ="PostgreSQL 18.2文書 "> ホーム</ a > </ td > < td width ="40% " align ="right " valign ="top "> F.2. auth_delay — 認証エラー時に一時停止</ td > </ tr > </ table > </ div > </ body > </ html >
0 commit comments