diff options
author | Michael Paquier | 2023-01-26 00:13:39 +0000 |
---|---|---|
committer | Michael Paquier | 2023-01-26 00:13:39 +0000 |
commit | 9aeff092c05820d6a9252d7a3f8db86f71f2205f (patch) | |
tree | 4a43fc073329e117f5e2391575202b3633ab5cad /doc/src/sgml/basic-archive.sgml | |
parent | 1a8e72bff781e869e5b5dc76fa18e3ae08181656 (diff) |
Revert "Rename contrib module basic_archive to basic_wal_module"
This reverts commit 0ad3c60, as per feedback from Tom Lane, Robert Haas
and Andres Freund. The new name used for the module had little
support.
This moves back to basic_archive as module name, and we will likely use
that as template for recovery modules, as well.
Discussion: https://postgr.es/m/CA+TgmoYG5uGOp7DGFT5gzC1kKFWGjkLSj_wOQxGhfMcvVEiKGA@mail.gmail.com
Diffstat (limited to 'doc/src/sgml/basic-archive.sgml')
-rw-r--r-- | doc/src/sgml/basic-archive.sgml | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/doc/src/sgml/basic-archive.sgml b/doc/src/sgml/basic-archive.sgml new file mode 100644 index 00000000000..b4d43ced203 --- /dev/null +++ b/doc/src/sgml/basic-archive.sgml @@ -0,0 +1,81 @@ +<!-- doc/src/sgml/basic-archive.sgml --> + +<sect1 id="basic-archive" xreflabel="basic_archive"> + <title>basic_archive — an example WAL archive module</title> + + <indexterm zone="basic-archive"> + <primary>basic_archive</primary> + </indexterm> + + <para> + <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"/>. + </para> + + <para> + In order to function, this module must be loaded via + <xref linkend="guc-archive-library"/>, and <xref linkend="guc-archive-mode"/> + must be enabled. + </para> + + <sect2 id="basic-archive-configuration-parameters"> + <title>Configuration Parameters</title> + + <variablelist> + <varlistentry> + <term> + <varname>basic_archive.archive_directory</varname> (<type>string</type>) + <indexterm> + <primary><varname>basic_archive.archive_directory</varname> configuration parameter</primary> + </indexterm> + </term> + <listitem> + <para> + 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. + </para> + </listitem> + </varlistentry> + </variablelist> + + <para> + These parameters must be set in <filename>postgresql.conf</filename>. + Typical usage might be: + </para> + +<programlisting> +# postgresql.conf +archive_mode = 'on' +archive_library = 'basic_archive' +basic_archive.archive_directory = '/path/to/archive/directory' +</programlisting> + </sect2> + + <sect2 id="basic-archive-notes"> + <title>Notes</title> + + <para> + 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. + </para> + </sect2> + + <sect2 id="basic-archive-author"> + <title>Author</title> + + <para> + Nathan Bossart + </para> + </sect2> + +</sect1> |