mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user