提交 325e9cb3 编写于 作者: B Bruce Momjian

Remove example of archive_command from configure section; instead have

users look at the referenced section for examples, per idea from Greg
Smith.
上级 202c6558
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.263 2010/04/12 09:52:29 heikki Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.264 2010/04/12 22:09:58 momjian Exp $ -->
<chapter Id="runtime-config"> <chapter Id="runtime-config">
<title>Server Configuration</title> <title>Server Configuration</title>
...@@ -1721,8 +1721,11 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1721,8 +1721,11 @@ SET ENABLE_SEQSCAN TO OFF;
(The path name is relative to the working directory of the server, (The path name is relative to the working directory of the server,
i.e., the cluster's data directory.) i.e., the cluster's data directory.)
Use <literal>%%</> to embed an actual <literal>%</> character in the Use <literal>%%</> to embed an actual <literal>%</> character in the
command. For more information see <xref command. It is important for the command to return a zero
linkend="backup-archiving-wal">. exit status only if it succeeds. For more information see
<xref linkend="backup-archiving-wal">.
</para>
<para>
This parameter can only be set in the <filename>postgresql.conf</> This parameter can only be set in the <filename>postgresql.conf</>
file or on the server command line. It is ignored unless file or on the server command line. It is ignored unless
<varname>archive_mode</> was enabled at server start. <varname>archive_mode</> was enabled at server start.
...@@ -1735,14 +1738,6 @@ SET ENABLE_SEQSCAN TO OFF; ...@@ -1735,14 +1738,6 @@ SET ENABLE_SEQSCAN TO OFF;
archiving, but also breaks the chain of WAL files needed for archiving, but also breaks the chain of WAL files needed for
archive recovery, so it should only be used in unusual circumstances. archive recovery, so it should only be used in unusual circumstances.
</para> </para>
<para>
It is important for the command to return a zero exit status if
and only if it succeeds. Examples:
<programlisting>
archive_command = 'cp "%p" /mnt/server/archivedir/"%f"'
archive_command = 'copy "%p" "C:\\server\\archivedir\\%f"' # Windows
</programlisting>
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册