-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic-archive.html
More file actions
72 lines (72 loc) · 8.63 KB
/
basic-archive.html
File metadata and controls
72 lines (72 loc) · 8.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!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.5. basic_archive — WALアーカイブモジュールの例</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="basebackup-to-shell.html" title="F.4. basebackup_to_shell — pg_basebackupモジュール"shell"の例" /><link rel="next" href="bloom.html" title="F.6. bloom — ブルームフィルタインデックスアクセスメソッド" /><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.3文書</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.3 : basic-archive.html">誤訳等の報告
</a></div></td></tr><tr><td width="10%" align="left"><a accesskey="p" href="basebackup-to-shell.html" title="F.4. basebackup_to_shell — pg_basebackupモジュール"shell"の例">前へ</a> </td><td width="10%" align="left"><a accesskey="u" href="contrib.html" title="付録F 追加で提供されるモジュールと拡張">上へ</a></td><td width="60%" align="center">F.5. basic_archive — WALアーカイブモジュールの例</td><td width="20%" align="right"> <a accesskey="n" href="bloom.html" title="F.6. bloom — ブルームフィルタインデックスアクセスメソッド">次へ</a></td></tr></table><hr /></div><div class="sect1" id="BASIC-ARCHIVE"><div class="titlepage"><div><div><h2 class="title" style="clear: both">F.5. basic_archive — WALアーカイブモジュールの例 <a href="#BASIC-ARCHIVE" class="id_link">#</a></h2></div></div></div><span class="original">
<title>basic_archive &mdash; an example WAL archive module</title>
</span><a id="id-1.11.7.15.2" class="indexterm"></a><p>
<span class="original">
<filename>basic_archive</filename> is an example of an archive module. This
module copies completed WAL segment files to the specified directory. This
may not be especially useful, but it can serve as a starting point for
developing your own archive module. For more information about archive
modules, see <xref linkend="archive-modules"/>.
</span>
<code class="filename">basic_archive</code>はアーカイブモジュールの例です。
このモジュールは、完成したWALセグメントファイルを指定されたディレクトリにコピーします。
これは特に有用ではありませんが、独自のアーカイブモジュールを開発するための出発点として役立ちます。
アーカイブモジュールの詳細は<a class="xref" href="archive-modules.html" title="第49章 アーカイブモジュール">第49章</a>を参照してください。
</p><p>
<span class="original">
In order to function, this module must be loaded via
<xref linkend="guc-archive-library"/>, and <xref linkend="guc-archive-mode"/>
must be enabled.
</span>
機能するには、このモジュールを<a class="xref" href="runtime-config-wal.html#GUC-ARCHIVE-LIBRARY">archive_library</a>経由でロードし、<a class="xref" href="runtime-config-wal.html#GUC-ARCHIVE-MODE">archive_mode</a>を有効にする必要があります。
</p><div class="sect2" id="BASIC-ARCHIVE-CONFIGURATION-PARAMETERS"><div class="titlepage"><div><div><h3 class="title">F.5.1. 設定パラメータ <a href="#BASIC-ARCHIVE-CONFIGURATION-PARAMETERS" class="id_link">#</a></h3></div></div></div><span class="original">
<title>Configuration Parameters</title>
</span><div class="variablelist"><dl class="variablelist"><dt><span class="term">
<code class="varname">basic_archive.archive_directory</code> (<code class="type">string</code>)
<a id="id-1.11.7.15.5.2.1.1.3" class="indexterm"></a>
<a id="id-1.11.7.15.5.2.1.1.4" class="indexterm"></a>
</span></dt><dd><p>
<span class="original">
The directory where the server should copy WAL segment files. This
directory must already exist. The default is an empty string, which
effectively halts WAL archiving, but if <xref linkend="guc-archive-mode"/>
is enabled, the server will accumulate WAL segment files in the
expectation that a value will soon be provided.
</span>
サーバがWALセグメントファイルをコピーするディレクトリです。
このディレクトリは既に存在している必要があります。
デフォルトは空文字列で、事実上WALアーカイブを停止します。
しかし<a class="xref" href="runtime-config-wal.html#GUC-ARCHIVE-MODE">archive_mode</a>が有効になっている場合、サーバはこの値が間もなく提供されることを期待してWALセグメントファイルを蓄積します。
</p></dd></dl></div><p>
<span class="original">
These parameters must be set in <filename>postgresql.conf</filename>.
Typical usage might be:
</span>
これらのパラメータは<code class="filename">postgresql.conf</code>の中で設定しなければなりません。
典型的な使用方法は以下のようになります。
</p><pre class="programlisting">
# postgresql.conf
archive_mode = 'on'
archive_library = 'basic_archive'
basic_archive.archive_directory = '/path/to/archive/directory'
</pre></div><div class="sect2" id="BASIC-ARCHIVE-NOTES"><div class="titlepage"><div><div><h3 class="title">F.5.2. 注釈 <a href="#BASIC-ARCHIVE-NOTES" class="id_link">#</a></h3></div></div></div><span class="original">
<title>Notes</title>
</span><p>
<span class="original">
Server crashes may leave temporary files with the prefix
<filename>archtemp</filename> in the archive directory. It is recommended to
delete such files before restarting the server after a crash. It is safe to
remove such files while the server is running as long as they are unrelated
to any archiving still in progress, but users should use extra caution when
doing so.
</span>
サーバがクラッシュすると、アーカイブディレクトリに接頭辞<code class="filename">archtemp</code>を持つ一時ファイルが残る場合があります。
クラッシュ後にサーバを再起動する前に、このようなファイルを削除することをお薦めします。
このようなファイルは、進行中のアーカイブと無関係であれば、サーバの実行中に削除しても安全ですが、その際には十分な注意が必要です。
</p></div><div class="sect2" id="BASIC-ARCHIVE-AUTHOR"><div class="titlepage"><div><div><h3 class="title">F.5.3. 作者 <a href="#BASIC-ARCHIVE-AUTHOR" class="id_link">#</a></h3></div></div></div><span class="original">
<title>Author</title>
</span><p>
Nathan Bossart
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="basebackup-to-shell.html" title="F.4. basebackup_to_shell — pg_basebackupモジュール"shell"の例">前へ</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="bloom.html" title="F.6. bloom — ブルームフィルタインデックスアクセスメソッド">次へ</a></td></tr><tr><td width="40%" align="left" valign="top">F.4. basebackup_to_shell — pg_basebackupモジュール"shell"の例 </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 18.3文書">ホーム</a></td><td width="40%" align="right" valign="top"> F.6. bloom — ブルームフィルタインデックスアクセスメソッド</td></tr></table></div></body></html>