Re: [HACKERS] Patch to psql.c to allow .psqlrc file
| От | (Erik Bennett) |
|---|---|
| Тема | Re: [HACKERS] Patch to psql.c to allow .psqlrc file |
| Дата | |
| Msg-id | cbf01ac67ab8cae9a316ab25a2106fff обсуждение исходный текст |
| Ответ на | [HACKERS] Patch to psql.c to allow .psqlrc file (Andrew Martin <martin@biochemistry.ucl.ac.uk>) |
| Список | pgsql-hackers |
> > Can I request we search in the postgres install directory first, then > > the home directory, or is that stupid because there may not be a > > postgresql install directory on the machine you are running psql on. > It's trivial to search whatever directories we want to, but using > /etc/ and $HOME is the convention which every other program I know > of follows, so I just did the same. > > It's certainly true that every machine will have a /etc whereas > maybe only one machine on a network may have the PG > installation directory. > > I'd vote for leaving it as is... > > > Andrew How about some sort of PATH variable? setenv PG_INITPATH /etc:/usr/local/pgsql:~ or export PG_INITPATH=/etc:/usr/local/pgsql:/home/bennett In the absense of the environment variable, it would default to "/etc:$HOME". This could be considered a security issue, however. If someone, without thinking, put "." in their PG_INITPATH, they could be tricked into executing something nasty. -Erik Erik Bennett bennett@corp.oneworld.com ------------------------------
В списке pgsql-hackers по дате отправления: