Re: [HACKERS] Win32 sysconfig -> pg_service.conf - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: [HACKERS] Win32 sysconfig -> pg_service.conf
Date
Msg-id 200606071228.k57CS6h01730@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] Win32 sysconfig -> pg_service.conf  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [HACKERS] Win32 sysconfig -> pg_service.conf  (Andrew Dunstan <andrew@dunslane.net>)
List 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. +

pgsql-patches by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] Win32 sysconfig -> pg_service.conf
Next
From: Andrew Dunstan
Date:
Subject: Re: [HACKERS] Win32 sysconfig -> pg_service.conf