summaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/postgresql.conf.sample
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-08-12 18:32:52 +0000
committerBruce Momjian <bruce@momjian.us>2004-08-12 18:32:52 +0000
commit6525b42b10c4e05fade5dfd147b59ed14073b0e6 (patch)
tree98b1371bd51f87f4fb33b88f2194c556335965f1 /src/backend/utils/misc/postgresql.conf.sample
parente48322a6d6cfce1ec52ab303441df329ddbc04d1 (diff)
Add make_native_path() because Win32 COPY is an internal CMD.EXE command
and doesn't process forward slashes in the same way as external commands. Quoting the first argument to COPY does not convert forward to backward slashes, but COPY does properly process quoted forward slashes in the second argument. Win32 COPY works with quoted forward slashes in the first argument only if the current directory is the same as the directory of the first argument.
Diffstat (limited to 'src/backend/utils/misc/postgresql.conf.sample')
-rw-r--r--src/backend/utils/misc/postgresql.conf.sample16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/backend/utils/misc/postgresql.conf.sample b/src/backend/utils/misc/postgresql.conf.sample
index 09ccdb2fb82..28463c6ae9b 100644
--- a/src/backend/utils/misc/postgresql.conf.sample
+++ b/src/backend/utils/misc/postgresql.conf.sample
@@ -117,13 +117,17 @@
# - Archiving -
#archive_command = '' # command to use to archive a logfile segment
-
+#
# If archive_command is '' then archiving is disabled. Otherwise, set it
-# to a command to copy a file to the proper place. A simplistic example
-# is 'cp %p /mnt/server/archivedir/%f'. 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. NOTE: it is important for the command to return
-# zero exit status if and only if it succeeded.
+# to a command to copy a file to the proper place. 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. NOTE: it is important for the command to
+# return 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
+
#---------------------------------------------------------------------------
# QUERY TUNING