Skip site navigation (1) Skip section navigation (2)

Re: PITR on Win32 - Archive and Restore

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: PITR on Win32 - Archive and Restore
Date: 2004-08-09 13:58:20
Message-ID: 411782FC.7050302@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackers-win32
I wrote:

>
> I will install MSys and friends on my new Windows machine and play 
> around to see what works, unless someone comes up with a tested 
> solution first.
>
>

Experimentation shows that xcopy is just as braindead about slashes as 
copy is. But quoting the paths with backslashes worked, e.g.

system("xcopy \"c:\\foo bar\\baz\" \"c:\\tmp\" /y >nul");

So it appears that we need either to have the paths output with 
system-dependant slashes, or, perhaps more flexibly, a new escape 
sequences (%P?) which does system-dependent slashes - that would be a 
small addition to src/backend/access/transam/xlog.c

cheers

andrew

In response to

pgsql-hackers-win32 by date

Next:From: Dave PageDate: 2004-08-09 14:09:55
Subject: Win32 PostgreSQL 8.0 Beta 1 Installer available for download
Previous:From: Andrew DunstanDate: 2004-08-09 13:40:47
Subject: Re: PITR on Win32 - Archive and Restore

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group