Re: [HACKERS] Patch to psql.c to allow .psqlrc file

Поиск
Список
Период
Сортировка
От The Hermit Hacker
Тема Re: [HACKERS] Patch to psql.c to allow .psqlrc file
Дата
Msg-id f53a95e62a3d8460e8e222b8c712990f
обсуждение исходный текст
Ответ на [HACKERS] Patch to psql.c to allow .psqlrc file  (Andrew Martin <martin@biochemistry.ucl.ac.uk>)
Список pgsql-hackers
On Sun, 22 Jun 1997, Bruce Momjian wrote:

> > Hrmm...was just thinking about this, and there is a flaw here:
> >
> > PostgreSQL isn't installed as root.  What about an admin that sets up a
> > pgsql account, gives it to someone else to installed/maintain...no global
> > psqlrc file :(
> >
> > I don't know if there is any way of doing it, but I would tend to think that
> > having on 'central to the install directory' in this case might actually
> > be advisable.  Maybe use the --pgdata variable to setup the initial file,
> > similar to pg_hba.conf?
>
> Kind of hard to CENTRALLY locate something if you are not root.  I
> wouldn't worry about it.

    No, you actually missed the point.

    If I install pgsql as userid pgsql, I can also install a psqlrc
file into pgdata/psqlrc...but, as pgsql, I can't install the same thing in
/etc

    So, what we are saying, is that in order to *completely* install
PostgreSQL, you now have to have root access?  Completely including the
psqlrc file...

Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org

------------------------------

В списке pgsql-hackers по дате отправления: