Re: PITR on Win32 - Archive and Restore - Mailing list pgsql-hackers-win32

From Tom Lane
Subject Re: PITR on Win32 - Archive and Restore
Date
Msg-id 15349.1092066555@sss.pgh.pa.us
Whole thread Raw
In response to Re: PITR on Win32 - Archive and Restore  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: PITR on Win32 - Archive and Restore  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers-win32
Andrew Dunstan <andrew@dunslane.net> writes:
> Tom Lane wrote:
>> As I said before, I'm willing to #ifdef the code so that the string
>> substituted for %p converts all / to \ on Windows.  What I'd like to
>> know is whether that's enough to solve the problems, particularly in
>> face of spaces in the path, or whether we'll still be in quoting hell.

> Names with spaces will need to be quoted :-(

But does that have to be done in the code, or will
    archive_command = 'copy "%p" ...'
work?

Strictly speaking, people probably ought to use something like
    archive_command = 'cp "%p" ...'
on Unix too, so if this is what it takes on Windows I'm satisfied.
Just wondering about what other gotchas Redmond has prepared for us...

            regards, tom lane

pgsql-hackers-win32 by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: PITR on Win32 - Archive and Restore
Next
From: Andrew Dunstan
Date:
Subject: Re: PITR on Win32 - Archive and Restore