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

Re: Data directory with trailing [back]slash

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Magnus Hagander" <mha(at)sollentuna(dot)net>
Cc: "PgSql-Win32" <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: Data directory with trailing [back]slash
Date: 2004-06-20 19:33:23
Message-ID: 7352.1087760003@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers-win32pgsql-patches
"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...

			regards, tom lane

In response to

Responses

pgsql-patches by date

Next:From: Tom LaneDate: 2004-06-20 20:37:16
Subject: Re: nested xacts and phantom Xids
Previous:From: Magnus HaganderDate: 2004-06-20 18:53:28
Subject: Data directory with trailing [back]slash

pgsql-hackers-win32 by date

Next:From: Andrew DunstanDate: 2004-06-20 22:07:40
Subject: Re: Data directory with trailing [back]slash
Previous:From: Magnus HaganderDate: 2004-06-20 18:53:28
Subject: Data directory with trailing [back]slash

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