>Zach Irmen said:
>> "Tom Lane" <[EMAIL PROTECTED]> writes:
>>> What happens if getenv("HOME") returns NULL?
>> Yeah, the strdup fails. I'll take it out to fix that.
>>> You also need to think about Windows
>> Can I just ifndef WIN32 and not think about it? I'm not sure how that
>> would work either.
>If we are going to have a Windows port I don't think we should 
>treat it as
>a poor cousin.
>This information is easily discoverable on MSDN in 5 minutes. 
>The answer
>is that you need to call NetUserGetInfo at level 11 to get a 
>user's home
>directory. See
>http://msdn.microsoft.com/library/en-us/dnucmg/html/ucmgch09.asp and

> (Thinks: using this requires linking with NetAPI32.dll - is that a
> or practical problem for us?)

This is already done by libpq if compiled on Win32. Which means also
psql.exe is linked against it on Win32. (see win32.mak in

So it shuoldn't be a problem, I think.


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

Reply via email to