Re: BUG #6479: Wrong Slash in pg_restore

Lists: pgsql-bugs
From: mikekeller987(at)frontier(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6479: Wrong Slash in pg_restore
Date: 2012-02-21 14:22:23
Message-ID: E1Rzqbn-0000F9-Mh@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 6479
Logged by: Mike Keller
Email address: mikekeller987(at)frontier(dot)com
PostgreSQL version: 9.1.2
Operating system: Windows 7 x64
Description:

I haven't been able to get pg_restore to restore a backup from pg_dump.
When doing a restore from a Directory backup I noticed that pg_restore is
using a forward slash instead of the required back slash when searching for
toc.dat. I suspect that it is also doing the same thing for custom and tar
backups as well.

The lack of ability to Automate backups is preventing me from proposing
PostgreSQL for Windows as a Database solution I have been assigned to work
on.


From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6479: Wrong Slash in pg_restore
Date: 2012-02-21 18:28:12
Message-ID: 4F43E23C.7010303@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

On 02/21/12 6:22 AM, mikekeller987(at)frontier(dot)com wrote:
> I haven't been able to get pg_restore to restore a backup from pg_dump.
> When doing a restore from a Directory backup I noticed that pg_restore is
> using a forward slash instead of the required back slash when searching for
> toc.dat. I suspect that it is also doing the same thing for custom and tar
> backups as well.

windows filesystem APIs are perfectly happy with forward slashes in
paths, always have been.

--
john r pierce N 37, W 122
santa cruz ca mid-left coast


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6479: Wrong Slash in pg_restore
Date: 2012-02-21 20:38:22
Message-ID: 25325.1329856702@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

John R Pierce <pierce(at)hogranch(dot)com> writes:
> On 02/21/12 6:22 AM, mikekeller987(at)frontier(dot)com wrote:
>> I haven't been able to get pg_restore to restore a backup from pg_dump.
>> When doing a restore from a Directory backup I noticed that pg_restore is
>> using a forward slash instead of the required back slash when searching for
>> toc.dat. I suspect that it is also doing the same thing for custom and tar
>> backups as well.

> windows filesystem APIs are perfectly happy with forward slashes in
> paths, always have been.

ISTM we've heard of Windows antivirus add-ons that break this, which of
course is just one of many varieties of fail in that industry. But
yeah, the stated complaint is not by itself a bug, and it would help a
lot if the OP had shown us what he's doing and what happens instead of
jumping to conclusions about why it's not working for him.

regards, tom lane