Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Magnus, where are you on getting a patch to
> fe-connect.c::pqGetHomeDirectory() for Win32? Right now the code is
> reading USERPROFILE or HOME.
Nope; as of CVS tip it's
#else
char tmppath[MAX_PATH];
ZeroMemory(tmppath, sizeof(tmppath));
if (!SHGetSpecialFolderPath(NULL, tmppath, CSIDL_APPDATA, FALSE))
return false;
snprintf(ret_path, MAXPGPATH, "%s/postgresql", tmppath);
return true;
#endif
This needs to be tested of course.
regards, tom lane