Re: [HACKERS] Win32 sysconfig -> pg_service.conf

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: david(at)fetter(dot)org, pgsql-patches(at)postgresql(dot)org
Subject: Re: [HACKERS] Win32 sysconfig -> pg_service.conf
Date: 2006-06-07 12:28:06
Message-ID: 200606071228.k57CS6h01730@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Andrew Dunstan wrote:
> >>What made you choose this rather than GetFullPathName?
> >>
> >>
> >
> >Sure, we can do that. Does GetFullPathName() work if the path does not
> >exist?
> >
>
> yes. see
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/getfullpathname.asp
>
> > How is it different from the path we pass to it? Aren't all
> >those paths full already?
> >
> >
> >
>
> If they are then it probably doesn't matter.

The reason I don't want to use GetFullPathName() is because on Unix, we
just return the specified path, not the full path, so I don't want to do
something different on Win32 unless we have to. There is good reason to
get the short path on Win32, if we can, but no logic to returning the
full path only on Win32, if that is not what was specified by configure.

--
Bruce Momjian http://candle.pha.pa.us
EnterpriseDB http://www.enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2006-06-07 12:33:52 Re: [HACKERS] Win32 sysconfig -> pg_service.conf
Previous Message Andrew Dunstan 2006-06-07 12:07:24 Re: [HACKERS] Win32 sysconfig -> pg_service.conf