Re: display and expression of the home directory in Win32
От | Hiroshi Saito |
---|---|
Тема | Re: display and expression of the home directory in Win32 |
Дата | |
Msg-id | 012701c612f0$6c3c4ce0$0b01a8c0@yourc3ftrhkaod обсуждение исходный текст |
Ответ на | Re: display and expression of the home directory in Win32 ("Magnus Hagander" <mha@sollentuna.net>) |
Список | pgsql-patches |
From: "Magnus Hagander" >> HOMEDIR = "C:/Documents and Settings/saito/Application >> Data/postgresql" >> VERSION = PostgreSQL 8.1.1 > > HOMEDIR is a very bad name for this variable, since it's *not* the home > directory. It could easily be confused. If we put it in, I definitly > think it should be called something else.. (USERCONFDIR based on that we Um, About a name, I think that it is right. > have SYSCONFDIR, perhaps?). Also, there is no reason not to include it > on Unix as well - it would actrually be much better to do that, in case > someone wants to write a script that relies on it. It will be good to be clearly shown in all environments. >> dir "C:/Documents and Settings/saito/Application Data/postgresql" > > This would then be: > dir "%APPDATA%\postgresql" > > which is actually much easier to use than getting it from pg_config, > since you can use the environment variable in any command you want. Probably, there is a user who notices after the directory is shown. Regards, Hiroshi Saito
В списке pgsql-patches по дате отправления: