Re: PITR on Win32 - Archive and Restore Command

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Mark Kirkwood <markir(at)coretech(dot)co(dot)nz>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: PITR on Win32 - Archive and Restore Command
Date: 2004-08-07 22:52:32
Message-ID: 41155D30.2080508@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32 pgsql-patches


Not if you pass it to the Windows shell via system() or popen() - then
forward slashed paths need to be quoted. It's only the libraries that
understand forward slashes as God intended.

cheers

andrew

Mark Kirkwood wrote:

> hmmm... I was under that impression too, and was a bit surprised when
> it *seemed* not to....I will go and check again - just in case some
> user error leaked in :-)
>
> Tom Lane wrote:
>
>> markir(at)coretech(dot)co(dot)nz writes:
>>
>>
>>> There is a bit of a trap if using '%p' in archive_command - it has
>>> seperators
>>> like '/' instead of '\', so does not work for some windows commands
>>> (like
>>> 'copy' for instance).
>>>
>>
>>
>> I was under the impression that forward slashes would work fine, as long
>> as you used them consistently?
>>
>

In response to

Responses

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message markir 2004-08-07 23:25:59 Re: PITR on Win32 - Archive and Restore
Previous Message Mark Kirkwood 2004-08-07 22:34:26 Re: PITR on Win32 - Archive and Restore Command

Browse pgsql-patches by date

  From Date Subject
Next Message markir 2004-08-07 23:25:59 Re: PITR on Win32 - Archive and Restore
Previous Message Alvaro Herrera 2004-08-07 22:51:02 Re: Make psql version aware; hide tablespace from older versions