Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit30c6202

Browse files
committed
Add documentation that pg_standby sleeps on Win32 because of 'copy' behavior.
1 parenteb88e7e commit30c6202

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)

[8]ページ先頭

©2009-2025 Movatter.jp