Skip to content

Commit 30c6202

Browse files
committed
Add documentation that pg_standby sleeps on Win32 because of 'copy' behavior.
1 parent eb88e7e commit 30c6202

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

doc/src/sgml/pgstandby.sgml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/pgstandby.sgml,v 2.5 2008/05/07 18:48:40 alvherre Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/pgstandby.sgml,v 2.6 2008/12/15 22:08:35 momjian Exp $ -->
22

33
<sect1 id="pgstandby">
44
<title>pg_standby</title>
@@ -295,7 +295,16 @@ restore_command = 'pg_standby -d -s 5 -t C:\pgsql.trigger.5442 ...\archive %f %p
295295
</itemizedlist>
296296

297297
<para>
298-
Since the Windows example uses <literal>copy</> at both ends, either
298+
The <literal>copy</> command on Windows sets the final file size
299+
before the file is completely copied, which would ordinarly confuse
300+
<application>pg_standby</application>. Therefore
301+
<application>pg_standby</application> waits <literal>sleeptime</>
302+
seconds once it sees the proper file size. GNUWin32's <literal>cp</>
303+
sets the file size only after the file copy is complete.
304+
</para>
305+
306+
<para>
307+
Using the Since the Windows example uses <literal>copy</> at both ends, either
299308
or both servers might be accessing the archive directory across the
300309
network.
301310
</para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy