Re: Data directory with trailing [back]slash - Mailing list pgsql-hackers-win32

From Tom Lane
Subject Re: Data directory with trailing [back]slash
Date
Msg-id 7352.1087760003@sss.pgh.pa.us
Whole thread Raw
In response to Data directory with trailing [back]slash  ("Magnus Hagander" <mha@sollentuna.net>)
List pgsql-hackers-win32
"Magnus Hagander" <mha@sollentuna.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...

            regards, tom lane

pgsql-hackers-win32 by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Data directory with trailing [back]slash
Next
From: Andrew Dunstan
Date:
Subject: Re: Data directory with trailing [back]slash