Skip to content

Commit c974bac

Browse files
committed
by GitHub Actions [skip ci]
1 parent 4a93902 commit c974bac

File tree

9 files changed

+25
-52
lines changed

9 files changed

+25
-52
lines changed

current/html/app-pg-dumpall.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@
679679
include <application>psql</application> meta-commands, it may be
680680
incompatible with clients other than <application>psql</application>.
681681
</span>
682-
《機械翻訳》一般的に、データベースを<span class="application">pg_dumpall</span>スクリプトからクリーンなリストアプロセスの保証に復元し、非デフォルト<span class="application">psql</span>の設定との潜在的な競合を防ぐには<code class="option">-X</code>(<code class="option">--no-psqlrc</code>))オプションを使用することをお勧めします
683-
さらに、<span class="application">pg_dumpall</span>スクリプトはinclude<span class="application">psql</span>メタコマンドである可能性があるため<span class="application">psql</span>以外のクライアントとは互換性がない可能性があります。
682+
一般的に、データベースを<span class="application">pg_dumpall</span>スクリプトからリストアする場合、クリーンなリストアプロセスを保証し、デフォルト以外の<span class="application">psql</span>設定との潜在的な競合を防ぐために<code class="option">-X</code>(<code class="option">--no-psqlrc</code>)オプションの使用を推奨します
683+
さらに、<span class="application">pg_dumpall</span>スクリプトは<span class="application">psql</span>メタコマンドを含む場合があるため<span class="application">psql</span>以外のクライアントとは互換性がない可能性があります。
684684
</p></div><div class="refsect1" id="APP-PG-DUMPALL-EX"><h2></h2><span class="original">
685685
&lt;title&gt;Examples&lt;/title&gt;
686686
</span><p>
@@ -709,7 +709,7 @@
709709
the script will attempt to drop other databases immediately, and that
710710
will fail for the database you are connected to.
711711
</span>
712-
《マッチ度[93.965517]》ここではどのデータベースに接続するかということは重要ではありません。なぜなら<span class="application">pg_dumpall</span>が作成するスクリプトファイルには、保存されたデータベースの作成および接続のための適切なコマンドが含まれているからです。
712+
ここではどのデータベースに接続するかということは重要ではありません。なぜなら<span class="application">pg_dumpall</span>が作成するスクリプトファイルには、保存されたデータベースの作成および接続のための適切なコマンドが含まれているからです。
713713
例外は<code class="option">--clean</code>を指定した場合で、最初に<code class="literal">postgres</code>データベースに接続しなければなりません。
714714
このときのスクリプトは即座に他のデータベースを削除しようとし、接続中のデータベースに対しては失敗するでしょう。
715715
</p></div><div class="refsect1" id="id-1.9.4.15.10"><h2>関連項目</h2><span class="original">

current/html/app-pgdump.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1571,7 +1571,7 @@
15711571
restore process and prevent potential conflicts with
15721572
non-default &lt;application&gt;psql&lt;/application&gt; configurations.
15731573
</span>
1574-
《機械翻訳》一般的に、データベースを平坦なテキスト<span class="application">pg_dump</span>スクリプトから保証にクリーンなリストアプロセスを復元し、デフォルト以外の<span class="application">psql</span>設定との潜在的な競合を防ぐ場合は<code class="option">-X</code>(<code class="option">--no-psqlrc</code>)オプションを使用することをお勧めします
1574+
一般的に、データベースを平文の<span class="application">pg_dump</span>スクリプトからリストアする場合、クリーンなリストアプロセスを保証し、デフォルト以外の<span class="application">psql</span>設定との潜在的な競合を防ぐために<code class="option">-X</code>(<code class="option">--no-psqlrc</code>)オプションの使用を推奨します
15751575
</p></div><span class="original">
15761576
&lt;refsect1 id="pg-dump-examples" xreflabel="Examples"&gt;
15771577
</span><div class="refsect1" id="PG-DUMP-EXAMPLES"><h2></h2><span class="original">

current/html/app-pgreceivewal.html

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,9 @@
296296
used in connecting to &lt;productname&gt;PostgreSQL&lt;/productname&gt; might
297297
utilize the name for purposes such as connection routing.
298298
</span>
299-
《マッチ度[54.916793]》このオプションは他のクライアントアプリケーションとの整合性のために<code class="literal">--dbname</code>と呼ばれます。しかし、<span class="application">pg_receivewal</span>はクラスタ内のどの特定のデータベースにも接続しませんので、接続文字列内のデータベース名は<span class="productname">PostgreSQL</span>により無視されます。
300-
ただし、<span class="productname">PostgreSQL</span>への接続に使用されるミドルウェア、つまりプロキシはこの値を利用する可能性があります。
301-
《機械翻訳》このオプションは<code class="literal">--dbname</code>他の一貫性アプリケーションではクライアントに対して呼び出されますが、<span class="application">pg_receivewal</span>はクラスタ内の特定のデータベースには接続しないので、データベース文字列に含まれるコネクション名前はサーバによって無視されます。
302-
しかし、データベース名前提供されるは、このようにしてデフォルトデータベース名前(<code class="literal">replication</code>)を上書きして、レプリケーションコネクションのを<code class="filename">~/.pgpass</code>で検索します。
303-
同様に、ミドルウェアや<span class="productname">PostgreSQL</span>に接続する際に使用されるプロキシは、などの目的のためにこの値を利用する場合があります。
299+
このオプションは他のクライアントアプリケーションとの整合性のために<code class="literal">--dbname</code>と呼ばれます。しかし、<span class="application">pg_receivewal</span>はクラスタ内のどの特定のデータベースにも接続しませんので、接続文字列に含まれるデータベース名はサーバにより無視されます。
300+
しかし、そのようにして提供されたデータベース名は、レプリケーション接続のパスワードを<code class="filename">~/.pgpass</code>で検索するためのデフォルトのデータベース名(<code class="literal">replication</code>)を上書きします。
301+
同様に、<span class="productname">PostgreSQL</span>への接続に使用されるミドルウェアやプロキシは、接続ルーティングなどのために、この名前を利用する可能性があります。
304302
</p></dd><dt><span class="term"><code class="option">-h <em class="replaceable"><code>host</code></em></code><br /></span><span class="term"><code class="option">--host=<em class="replaceable"><code>host</code></em></code></span></dt><dd><p>
305303
<span class="original">
306304
Specifies the host name of the machine on which the server is

current/html/backup-dump.html

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,8 @@
110110
be read by the &lt;application&gt;psql&lt;/application&gt; program using its default
111111
settings. The general command form to restore a text dump is
112112
</span>
113-
《マッチ度[78.640777]》<span class="application">pg_dump</span>で作成されたテキストファイルは<span class="application">psql</span>プログラムで読み込まれることを意図しています。
114-
以下に、ダンプをリストアする一般的なコマンドを示します。
115-
《機械翻訳》<span class="application">pg_dump</span>によって作成されたテキストファイルは、デフォルトの設定を使用して<span class="application">psql</span>プログラムによって読み取られるように意図されています。
116-
一般的なコマンドフォームからリストアaテキストダンプです。
113+
<span class="application">pg_dump</span>で作成されたテキストファイルは、デフォルト設定の<span class="application">psql</span>プログラムで読み込まれることを意図しています。
114+
以下に、テキストダンプをリストアする一般的なコマンドを示します。
117115
</p><pre class="synopsis">
118116
psql -X <em class="replaceable"><code>dbname</code></em> &lt; <em class="replaceable"><code>dumpfile</code></em>
119117
</pre><p>
@@ -132,23 +130,18 @@
132130
the database server to connect to and the user name to use. See
133131
the &lt;xref linkend="app-psql"/&gt; reference page for more information.
134132
</span>
135-
《マッチ度[67.938021]》ここで<em class="replaceable"><code>dumpfile</code></em><span class="application">pg_dump</span>コマンドにより出力されたファイルです。
133+
ここで<em class="replaceable"><code>dumpfile</code></em><span class="application">pg_dump</span>コマンドにより出力されたファイルです。
136134
<em class="replaceable"><code>dbname</code></em>データベースはこのコマンドでは作成されません。
137135
(例えば<code class="literal">createdb -T template0 <em class="replaceable"><code>dbname</code></em></code> のようにして)<span class="application">psql</span>を実行する前に自分で<code class="literal">template0</code>から作成してください。
136+
<span class="application">psql</span>をデフォルト設定で実行することを保証するためには、<code class="option">-X</code>(<code class="option">--no-psqlrc</code>)オプションを使用します。
138137
<span class="application">psql</span><span class="application">pg_dump</span>と似たような、接続データベースサーバと使用するユーザ名を指定するオプションに対応しています。
139138
詳細については、<a class="xref" href="app-psql.html" title="psql"><span class="refentrytitle"><span class="application">psql</span></span></a>のリファレンスページを参照してください。
140-
テキスト形式ではないダンプファイルは<a class="xref" href="app-pgrestore.html" title="pg_restore"><span class="refentrytitle"><span class="application">pg_restore</span></span></a> ユーティリティを使いリストアします。
141-
《機械翻訳》ここで、<em class="replaceable"><code>dumpfile</code></em><span class="application">pg_dump</span>コマンドが出力するファイルです。
142-
データベース<em class="replaceable"><code>dbname</code></em>はこのコマンドでは作成されないため、<span class="application">psql</span>を実行する<code class="literal">template0</code>前から自分で作成する必要があります(例:<code class="literal">createdb -T template0 <em class="replaceable"><code>dbname</code></em></code>)を使用)。
143-
保証<span class="application">psql</span>をデフォルトの設定で実行するには、<code class="option">-X</code>(<code class="option">--no-psqlrc</code>)オプションを使用します。
144-
<span class="application">psql</span>は、<span class="application">pg_dump</span>と同様にオプションをサポートし、接続するデータベースサーバと使用するユーザ名前を指定します。
145-
詳細については、<a class="xref" href="app-psql.html" title="psql"><span class="refentrytitle"><span class="application">psql</span></span></a>リファレンスページを参照してください。
146139
</p><p>
147140
<span class="original">
148141
Non-text file dumps should be restored using the &lt;xref
149142
linkend="app-pgrestore"/&gt; utility.
150143
</span>
151-
《機械翻訳》テキストファイル以外の投棄場は、<a class="xref" href="app-pgrestore.html" title="pg_restore"><span class="refentrytitle"><span class="application">pg_restore</span></span></a>ユーティリティを用いて復元されるべきである
144+
テキスト形式ではないダンプファイルは<a class="xref" href="app-pgrestore.html" title="pg_restore"><span class="refentrytitle"><span class="application">pg_restore</span></span></a>ユーティリティを使いリストアします
152145
</p><p>
153146
<span class="original">
154147
Before restoring an SQL dump, all the users who own objects or were

current/html/kernel-resources.html

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@
122122
which are usually confusingly worded &lt;quote&gt;No space
123123
left on device&lt;/quote&gt;, from the function &lt;function&gt;semget&lt;/function&gt;.
124124
</span>
125-
《マッチ度[93.288136]》System V セマフォを使用している場合、<span class="productname">PostgreSQL</span>は、許可した接続(<a class="xref" href="runtime-config-connection.html#GUC-MAX-CONNECTIONS">max_connections</a>)、許可したオートバキュームワーカープロセス(<a class="xref" href="runtime-config-autovacuum.html#GUC-AUTOVACUUM-MAX-WORKERS">autovacuum_max_workers</a>)、許可したWAL送信プロセス(<a class="xref" href="runtime-config-replication.html#GUC-MAX-WAL-SENDERS">max_wal_senders</a>)、許可したバックエンドプロセス(<a class="xref" href="runtime-config-resource.html#GUC-MAX-WORKER-PROCESSES">max_worker_processes</a>)ごとに1つのセマフォを使用し、16個のセマフォをセットとして扱います
126-
それぞれそのようなセットは、他のアプリケーションに使われているセマフォセットとの衝突を検出するための<span class="quote"><span class="quote">マジックナンバー</span></span>が含まれている17個目のセマフォを持っています
127-
システム内のセマフォの最大数は<code class="varname">SEMMNS</code>によって設定され、その結果としてその値は少なくとも<code class="varname">max_connections</code><code class="varname">autovacuum_max_workers</code><code class="varname">max_wal_senders</code><code class="varname">max_worker_processes</code>と同じ、ただし、許可された接続とワーカー16個ごとに余分な1個を加えた値以上はなければいけません<a class="xref" href="kernel-resources.html#SYSVIPC-PARAMETERS" title="表18.1 System V IPCパラメータ">表 18.1</a>の公式を参照してください)。
125+
System V セマフォを使用している場合、<span class="productname">PostgreSQL</span>は、許可した接続(<a class="xref" href="runtime-config-connection.html#GUC-MAX-CONNECTIONS">max_connections</a>)、許可したオートバキュームワーカープロセス(<a class="xref" href="runtime-config-autovacuum.html#GUC-AUTOVACUUM-MAX-WORKERS">autovacuum_max_workers</a>)、許可したWAL送信プロセス(<a class="xref" href="runtime-config-replication.html#GUC-MAX-WAL-SENDERS">max_wal_senders</a>)、許可したバックエンドプロセス(<a class="xref" href="runtime-config-resource.html#GUC-MAX-WORKER-PROCESSES">max_worker_processes</a>)ごとに1つのセマフォを使用し、19個のセマフォをセットとして扱います
126+
それぞれそのようなセットは、他のアプリケーションに使われているセマフォセットとの衝突を検出するための<span class="quote"><span class="quote">マジックナンバー</span></span>が含まれている20個目のセマフォを持っています
127+
システム内のセマフォの最大数は<code class="varname">SEMMNS</code>によって設定され、その結果としてその値は少なくとも<code class="varname">max_connections</code><code class="varname">autovacuum_max_workers</code><code class="varname">max_wal_senders</code><code class="varname">max_worker_processes</code>と同じ、ただし、許可された接続とワーカー19個ごとに余分な1個を加えた値以上はなければいけません<a class="xref" href="kernel-resources.html#SYSVIPC-PARAMETERS" title="表18.1 System V IPCパラメータ">表 18.1</a>の公式を参照してください)。
128128
<code class="varname">SEMMNI</code>パラメータはシステム上に同時に存在できるセマフォ集合の数の上限を決定します。
129-
ですから、このパラメータは少なくとも<code class="literal">ceil((max_connections + autovacuum_max_workers + max_wal_senders + max_worker_processes + 7) / 16)</code>以上はなくてはいけません。
129+
ですから、このパラメータは少なくとも<code class="literal">ceil((max_connections + autovacuum_max_workers + max_wal_senders + max_worker_processes + 7) / 19)</code>以上はなくてはいけません。
130130
一時的な失敗の回避策としては許可される接続の数を下げることができますが、<span class="quote"><span class="quote">No space left on device</span></span>という紛らわしい言葉が<code class="function">semget</code>関数から表示されます。
131131
</p><p>
132132
<span class="original">
@@ -783,18 +783,11 @@
783783
of huge pages required. This parameter can be viewed before starting the
784784
server with a &lt;command&gt;postgres&lt;/command&gt; command like:
785785
</span>
786-
《マッチ度[66.431594]》<span class="productname">PostgreSQL</span>のように、メモリの大きな連続チャンクを使用するとき、特に<a class="xref" href="runtime-config-resource.html#GUC-SHARED-BUFFERS">shared_buffers</a>の値が大きい場合に、huge pagesを使用するとオーバーヘッドが減少します。
786+
<span class="productname">PostgreSQL</span>のように、メモリの大きな連続チャンクを使用するとき、特に<a class="xref" href="runtime-config-resource.html#GUC-SHARED-BUFFERS">shared_buffers</a>の値が大きい場合に、huge pagesを使用するとオーバーヘッドが減少します。
787787
<span class="productname">PostgreSQL</span>でこの機能を有効にするには、<code class="varname">CONFIG_HUGETLBFS=y</code>および<code class="varname">CONFIG_HUGETLB_PAGE=y</code>としたカーネルが必要です。
788788
また、要求される十分な量だけhuge pagesを提供するようにオペレーティングシステムを調整する必要があるでしょう。
789-
必要なhuge pages数を決定するには、<code class="command">postgres</code>コマンドを起動して<a class="xref" href="runtime-config-preset.html#GUC-SHARED-MEMORY-SIZE-IN-HUGE-PAGES">shared_memory_size_in_huge_pages</a>の値を調べます。
790-
実行時に計算されたこのパラメータを見るためには、サーバを停止しなければならないことに注意してください。
791-
これは以下のような感じになるでしょう。
792-
《機械翻訳》huge pagesを使用すると、<span class="productname">PostgreSQL</span>のようにオーバーヘッドの連続したチャンクを使用する場合、特に<a class="xref" href="runtime-config-resource.html#GUC-SHARED-BUFFERS">shared_buffers</a>のラージ値を使用する場合に、メモリが削減されます。
793-
この機能を<span class="productname">PostgreSQL</span>で使用するには、<code class="varname">CONFIG_HUGETLBFS=y</code><code class="varname">CONFIG_HUGETLB_PAGE=y</code>を含むカーネルが必要です。
794-
また、必要なサイズの十分なhuge pagesを提供するようにオペレーティングシステムを構成する必要があります。
795-
ランタイムで計算されたパラメータ<a class="xref" href="runtime-config-preset.html#GUC-SHARED-MEMORY-SIZE-IN-HUGE-PAGES">shared_memory_size_in_huge_pages</a>は、必要なhuge pagesの数をレポートします。
796-
このパラメータは、前で<code class="command">postgres</code>?のようなコマンドで始まるで表示できます。
797-
サーバラージ
789+
実行時に計算されるパラメータ<a class="xref" href="runtime-config-preset.html#GUC-SHARED-MEMORY-SIZE-IN-HUGE-PAGES">shared_memory_size_in_huge_pages</a>は、要求されるhuge pages数を報告します。
790+
このパラメータは、サーバの開始前に<code class="command">postgres</code>コマンドで次のようにして見ることができます。
798791
</p><pre class="programlisting">
799792
$ <strong class="userinput"><code>postgres -D $PGDATA -C shared_memory_size_in_huge_pages</code></strong>
800793
3170

0 commit comments

Comments
 (0)