Add documentation that pg_standby sleeps on Win32 because of 'copy' behavior.
authorBruce Momjian <bruce@momjian.us>
Mon, 15 Dec 2008 22:08:35 +0000 (22:08 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 15 Dec 2008 22:08:35 +0000 (22:08 +0000)
doc/src/sgml/pgstandby.sgml

index 6ba2201e1422dadb1e1cbda8890b8a0f88a7fe2d..9b2e044806adfc25f63c63b3ece54ba96b8b9175 100644 (file)
@@ -295,7 +295,16 @@ restore_command = 'pg_standby -d -s 5 -t C:\pgsql.trigger.5442 ...\archive %f %p
   </itemizedlist>
 
   <para>
-   Since the Windows example uses <literal>copy</> at both ends, either
+   The <literal>copy</> command on Windows sets the final file size
+   before the file is completely copied, which would ordinarly confuse
+   <application>pg_standby</application>.  Therefore
+   <application>pg_standby</application> waits <literal>sleeptime</>
+   seconds once it sees the proper file size.  GNUWin32's <literal>cp</>
+   sets the file size only after the file copy is complete.
+  </para>
+
+  <para>
+   Using the Since the Windows example uses <literal>copy</> at both ends, either
    or both servers might be accessing the archive directory across the
    network.
   </para>