From 10249abfa19a53e9e158396333400ae66ae1c02b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 12 Aug 2004 19:03:44 +0000 Subject: Cleanup Win32 COPY handling, and move archive examples to SGML. --- doc/src/sgml/runtime.sgml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 117a0eb21b3..438b58d9f5a 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -1435,16 +1435,24 @@ SET ENABLE_SEQSCAN TO OFF; archive_command (string) - The shell command to execute to archive a completed segment of the - WAL file series. If this is an empty string (which is the default), - WAL archiving is disabled. Any %p in the string is - replaced - by the absolute path of the file to archive, while any %f - is replaced by the file name only. Write %% if you need - to embed an actual % character in the command. For more - information see . This option - can only be set at server start or in the - postgresql.conf file. + The shell command to execute to archive a completed segment of + the WAL file series. If this is an empty string (the default), + WAL archiving is disabled. Any %p in the string is + replaced by the absolute path of the file to archive, and any + %f is replaced by the file name only. Use + %% to embed an actual % character in the + command. For more information see . This option can only be set at + server start or in the postgresql.conf + file. + + + It is important for the command to return a zero exit status only if + it succeeds. Examples: + +archive_command = 'cp "%p" /mnt/server/archivedir/"%f"' +archive_command = 'copy "%p" /mnt/server/archivedir/"%f"' # Win32 + -- cgit v1.2.3