Re: doc patch - archive/restore_command on windows

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: doc patch - archive/restore_command on windows
Date: 2008-06-20 08:00:13
Message-ID: 485B638D.6000303@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

ITAGAKI Takahiro wrote:
> I found the examples of documentation about archive_command and
> restore_command for Windows are incorrect or improper.
>
> - "copy" doesn't accept / (slash) as a path separator.
> We should use \\ (double backslash) for the purpose.
> - Windows path is typically starts with a drive letter (C:\\).
> - We'd better to quote a whole path, not only the last filename
> with double-quotes. It can work, but is not a windows manner.
>
>
>
>

As previously discussed, we should probably stop recommending use of the
Windows copy command altogether, and recommend use of GnuWin32 cp
instead, for archive_command. The latter does behave sanely w.r.t.
forward slashes.

cheers

andrew

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Zoltan Boszormenyi 2008-06-20 10:24:13 Re: posix advises ...
Previous Message ITAGAKI Takahiro 2008-06-20 07:52:25 Re: doc patch - archive/restore_command on windows