|
23 | 23 | otherwise sound database cluster, if none of the dangerous modes mentioned |
24 | 24 | below are used. |
25 | 25 | </span> |
26 | | -《機械翻訳》<code class="option">--wal-segsize</code>(下記参照)のようなオプションは、<code class="command">initdb</code>を再実行しなくても、データベースクラスタの特定のグローバル設定を変更するために使用することもできます。 |
27 | | -これは、下記で述べる危険なモードが使用されていない場合、健全なデータベースクラスタ上で安全に使用できます。 |
| 26 | +<code class="option">--wal-segsize</code>(後述)のようないくつかのオプションは、<code class="command">initdb</code>を再実行せずに、データベースクラスタの特定のグローバル設定を変更するために使用することもできます。 |
| 27 | +これは、後述する危険なモードが使用されていないか、正常なデータベースクラスタ上であれば安全に使用できます。 |
28 | 28 | </p><p> |
29 | 29 | <span class="original"> |
30 | 30 | If <command>pg_resetwal</command> is used on a data directory where the |
|
36 | 36 | working on a data directory in an unclean shutdown state or with a |
37 | 37 | corrupted control file. |
38 | 38 | </span> |
39 | | -《機械翻訳》サーバが正常にシャットダウンされ、制御ファイルが無傷の状態で、<code class="command">pg_resetwal</code>がデータディレクトリに対して使用された場合、使用されなくなったWALファイルがクリアされる以外に、データベースシステムの内容に影響を与えることはありません。 |
40 | | -その他の使用は危険を伴う可能性があり、細心の注意を払って行う必要があります。 |
41 | | -<code class="command">pg_resetwal</code>は、不正なシャットダウン状態で、または制御ファイルが破損した状態でデータディレクトリを操作する前に、<code class="option">-f</code>(強制)オプションを指定する必要があります。 |
| 39 | +サーバが正常にシャットダウンされ、かつ制御ファイルが正常な状態で、<code class="command">pg_resetwal</code>がデータディレクトリに対して使用された場合、使用されなくなったWALファイルが削除される以外に、データベースシステムの内容に影響を与えることはありません。 |
| 40 | +その他の状態での使用は危険をともなう可能性があり、細心の注意をはらって使用しなければなりません。 |
| 41 | +<code class="command">pg_resetwal</code>は、正常にシャットダウンされていない状態のデータディレクトリや、破損した制御ファイルが存在する場合、実行時に<code class="option">-f</code> (force,強制) オプションを指定する必要があります。 |
42 | 42 | </p><p> |
43 | 43 | <span class="original"> |
44 | 44 | After running this command on a data directory with corrupted WAL or a |
|
48 | 48 | run <command>initdb</command>, and restore. After restore, check for |
49 | 49 | inconsistencies and repair as needed. |
50 | 50 | </span> |
51 | | -《マッチ度[78.516624]》このコマンドを実行すると、サーバが開始できるようになるはずです。 |
| 51 | +破損したWALファイルや、破損した制御ファイルが存在するデータディレクトリに対してこのコマンドを実行すると、サーバが開始できるようになるはずです。 |
52 | 52 | ただし、不完全にコミットされたトランザクションが原因でデータベースのデータに矛盾が起こる可能性があることに注意してください。 |
53 | 53 | コマンドの実行後は、ただちにデータをダンプし、<code class="command">initdb</code>を実行し、リストアすべきです。 |
54 | 54 | リストア後、矛盾がないか検査し、必要に応じて修復を行ってください。 |
55 | | -《機械翻訳》破損したWALや制御ファイルを含むデータディレクトリでこのコマンドを実行した後、サーバを起動することは可能ですが、データベースには部分的にコミットされたトランザクションによる不整合なデータが含まれている可能性があることに注意してください。 |
56 | | -すぐにデータをダンプし、<code class="command">initdb</code>を実行して復元する必要があります。 |
57 | | -復元後、不整合をチェックし、必要に応じて修復してください。 |
58 | 55 | </p><p> |
59 | 56 | <span class="original"> |
60 | 57 | If <command>pg_resetwal</command> complains that it cannot determine |
|
84 | 81 | This utility can only be run by the user who installed the server, because |
85 | 82 | it requires read/write access to the data directory. |
86 | 83 | </span> |
87 | | -《機械翻訳》このユーティリティは、データディレクトリへの読み取り/書き込みアクセスが必要なため、サーバをインストールしたユーザのみが実行できます。 |
| 84 | +このユーティリティは、データディレクトリへの読み取り/書き込みアクセスが必要なため、サーバをインストールしたユーザのみ実行できます。 |
88 | 85 | </p></div><div class="refsect1" id="id-1.9.5.9.6"><h2>オプション</h2><span class="original"> |
89 | 86 | <title>Options</title> |
90 | 87 | </span><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>datadir</code></em><br /></span><span class="term"><code class="option">-D <em class="replaceable"><code>datadir</code></em></code><br /></span><span class="term"><code class="option">--pgdata=<em class="replaceable"><code>datadir</code></em></code></span></dt><dd><p> |
|
94 | 91 | line. <command>pg_resetwal</command> does not use the environment |
95 | 92 | variable <envar>PGDATA</envar>. |
96 | 93 | </span> |
97 | | -《機械翻訳》データベースディレクトリの場所を指定します。 |
98 | | -安全上の理由から、コマンドラインでデータディレクトリを指定する必要があります。 |
| 94 | +データベースディレクトリの場所を指定します。 |
| 95 | +安全上の理由から、コマンドラインでデータディレクトリを指定しなければなりません。 |
99 | 96 | <code class="command">pg_resetwal</code>は環境変数<code class="envar">PGDATA</code>を使用しません。 |
100 | 97 | </p></dd><dt><span class="term"><code class="option">-f</code><br /></span><span class="term"><code class="option">--force</code></span></dt><dd><p> |
101 | 98 | <span class="original"> |
|
105 | 102 | <command>pg_resetwal</command> cannot determine valid data for |
106 | 103 | <filename>pg_control</filename>. |
107 | 104 | </span> |
108 | | -《機械翻訳》上記のように、危険な状況でも強制的に<code class="command">pg_resetwal</code>を実行します。 |
109 | | -具体的には、サーバがクリーンにシャットダウンされていない場合や、<code class="command">pg_resetwal</code>が<code class="filename">pg_control</code>の有効なデータを判断できない場合に、このオプションは必要です。 |
| 105 | +前述のように、危険な状況でも強制的に<code class="command">pg_resetwal</code>を実行します。 |
| 106 | +具体的には、サーバが正常にシャットダウンされていない場合や、<code class="command">pg_resetwal</code>が<code class="filename">pg_control</code>の有効なデータを確認できない場合に、このオプションは必要です。 |
110 | 107 | </p></dd><dt><span class="term"><code class="option">-n</code><br /></span><span class="term"><code class="option">--dry-run</code></span></dt><dd><p> |
111 | 108 | <span class="original"> |
112 | 109 | The <option>-n</option>/<option>&#45;-dry-run</option> option instructs |
|
127 | 124 | values can be specified by using the prefix <literal>0x</literal>. Note |
128 | 125 | that these instructions only apply with the standard block size of 8 kB. |
129 | 126 | </span> |
130 | | -《マッチ度[76.600985]》以下のオプションは<code class="command">pg_resetwal</code>が<code class="filename">pg_control</code>を読んでも適切な値を決定できない場合にのみ必要になります。 |
| 127 | +以下のオプションは<code class="command">pg_resetwal</code>が<code class="filename">pg_control</code>を読んでも適切な値を決定できない場合にのみ必要になります。 |
131 | 128 | 安全な値は以下で説明するようにして決定できます。 |
132 | 129 | 数値を引数として取る値については、<code class="literal">0x</code>の接頭辞をつけることで16進数の値を指定できます。 |
133 | | -《機械翻訳》以下のオプションは、<code class="command">pg_resetwal</code>が<code class="filename">pg_control</code>を読み込んで適切な値を決定できない場合にのみ必要です。 |
134 | | -安全な値は以下のように決定できます。 |
135 | | -数値引数を取る値については、16進数を<code class="literal">0x</code>という接頭辞で指定することができます。 |
136 | | -これらの命令は標準的な8kBブロックサイズでのみ適用されることに注意してください。 |
| 130 | +これらの手順は標準的な8kBブロックサイズでのみ適用されることに注意してください。 |
137 | 131 | </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><code class="option">-c <em class="replaceable"><code>xid</code></em>,<em class="replaceable"><code>xid</code></em></code><br /></span><span class="term"><code class="option">--commit-timestamp-ids=<em class="replaceable"><code>xid</code></em>,<em class="replaceable"><code>xid</code></em></code></span></dt><dd><p> |
138 | 132 | <span class="original"> |
139 | 133 | Manually set the oldest and newest transaction IDs for which the commit |
|
279 | 273 | existing database cluster, avoiding the need to |
280 | 274 | re-<command>initdb</command>. |
281 | 275 | </span> |
282 | | -《機械翻訳》このオプションは、既存のデータベースクラスタのWALセグメントサイズを変更するためにも使用できます。 |
283 | | -これにより、<code class="command">initdb</code>を再度実行する必要がなくなります。 |
| 276 | +このオプションは、既存のデータベースクラスタのWALセグメントサイズを変更するためにも使用でき、<code class="command">initdb</code>を再実行する必要がなくなります。 |
284 | 277 | </p><div class="note"><h3 class="title">注記</h3><p> |
285 | 278 | <span class="original"> |
286 | 279 | While <command>pg_resetwal</command> will set the WAL starting address |
|
0 commit comments