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

Re: Data directory with trailing [back]slash

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: PgSql-Win32 <pgsql-hackers-win32(at)postgresql(dot)org>,"Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Data directory with trailing [back]slash
Date: 2004-06-21 00:21:17
Message-ID: 40D629FD.1020100@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackers-win32pgsql-patches

Tom Lane wrote:

>"Magnus Hagander" <mha(at)sollentuna(dot)net> writes:
>  
>
>>It's not possible to start the postmaster on win32 with:
>>postmaster -D d:\pgdata\
>>or
>>postmaster -D d:/pgdata/
>>    
>>
>
>Sounds like canonicalize_path() needs to be applied a bit sooner than
>it is.
>
>BTW I think canonicalize_path() is a few bricks shy of a load yet:
>I'm not sure it works well with Windows drive-letters, and it definitely
>will strip significant slashes when given input like '/' or 'C:\'.
>Feel free to fix those problems while at it...
>  
>

Or use the attached patch, which I think does it right.

cheers

andrew

Attachment: canon.patch
Description: text/x-patch (1.0 KB)

In response to

Responses

pgsql-patches by date

Next:From: Scott MarloweDate: 2004-06-21 00:35:15
Subject: Re: [PATCHES] ALTER TABLE ... SET TABLESPACE
Previous:From: Bruce MomjianDate: 2004-06-21 00:17:35
Subject: Re: nested xacts and phantom Xids

pgsql-hackers-win32 by date

Next:From: Farai MbiraDate: 2004-06-21 03:48:16
Subject: initdb error
Previous:From: Andrew DunstanDate: 2004-06-20 22:07:40
Subject: Re: Data directory with trailing [back]slash

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