summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-06-25 12:03:11 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2009-06-25 12:03:11 +0000
commit8fd733bd19b2a0a8cde5a9e9a247ef361f167387 (patch)
tree4d06bacf1b10864347f23c7c58932c87578878dd /doc/src
parent6c4637a3b3d333583ee5d91588ce477751e8af04 (diff)
Disable pg_standby -l option because the backend doesn't expect the recovered
file to be a symlink. We tried to fix this issue with an earlier server-side patch, but it didn't fix the whole issue. The same bug is present in older releases as well, but the 8.4 train is about to leave the station, and I'm not sure if have consensus on whether we can remove the -l option in back-branches or do we need to attempt a server-side fix to make symlinking safe. Patch by Simon Riggs, per discussion on bug identified by Fujii Masao.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/pgstandby.sgml28
1 files changed, 3 insertions, 25 deletions
diff --git a/doc/src/sgml/pgstandby.sgml b/doc/src/sgml/pgstandby.sgml
index 87ba1fcad2e..ce81de3a189 100644
--- a/doc/src/sgml/pgstandby.sgml
+++ b/doc/src/sgml/pgstandby.sgml
@@ -1,4 +1,4 @@
-<!-- $PostgreSQL: pgsql/doc/src/sgml/pgstandby.sgml,v 2.9 2009/05/14 21:59:22 tgl Exp $ -->
+<!-- $PostgreSQL: pgsql/doc/src/sgml/pgstandby.sgml,v 2.10 2009/06/25 12:03:11 heikki Exp $ -->
<sect1 id="pgstandby">
<title>pg_standby</title>
@@ -27,11 +27,6 @@
<itemizedlist>
<listitem>
<para>
- Supports copy or link for restoring WAL files
- </para>
- </listitem>
- <listitem>
- <para>
Written in C, so very portable and easy to install
</para>
</listitem>
@@ -172,22 +167,10 @@ pg_standby <optional> <replaceable>option</> ... </optional> <replaceable>archiv
</entry>
</row>
<row>
- <entry><literal>-l</></entry>
- <entry>no</entry>
- <entry>
- Use <literal>ln</> command to restore WAL files from archive.
- Link is more efficient than copy, but the default is copy since link
- will not work in all scenarios.
- On Windows, this option uses the <literal>mklink</> command
- to provide a file-to-file symbolic link. <literal>-l</> will
- not work on versions of Windows prior to Vista.
- </entry>
- </row>
- <row>
<entry><literal>-r</> <replaceable>maxretries</></entry>
<entry>3</entry>
<entry>
- Set the maximum number of times to retry the copy or link command if it
+ Set the maximum number of times to retry the copy command if it
fails. After each failure, we wait for <replaceable>sleeptime</> *
<replaceable>num_retries</>
so that the wait time increases progressively. So by default,
@@ -242,7 +225,7 @@ pg_standby <optional> <replaceable>option</> ... </optional> <replaceable>archiv
<programlisting>
archive_command = 'cp %p .../archive/%f'
-restore_command = 'pg_standby -l -d -s 2 -t /tmp/pgsql.trigger.5442 .../archive %f %p %r 2>>standby.log'
+restore_command = 'pg_standby -d -s 2 -t /tmp/pgsql.trigger.5442 .../archive %f %p %r 2>>standby.log'
recovery_end_command = 'rm -f /tmp/pgsql.trigger.5442'
</programlisting>
@@ -255,11 +238,6 @@ recovery_end_command = 'rm -f /tmp/pgsql.trigger.5442'
<itemizedlist>
<listitem>
<para>
- use the <literal>ln</> command to restore WAL files from archive
- </para>
- </listitem>
- <listitem>
- <para>
produce debugging output in <filename>standby.log</>
</para>
</listitem>