Re: [HACKERS] Patch to psql.c to allow .psqlrc file - Mailing list pgsql-hackers

From The Hermit Hacker
Subject Re: [HACKERS] Patch to psql.c to allow .psqlrc file
Date
Msg-id f53a95e62a3d8460e8e222b8c712990f
Whole thread Raw
In response to [HACKERS] Patch to psql.c to allow .psqlrc file  (Andrew Martin <martin@biochemistry.ucl.ac.uk>)
List 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 by date:

Previous
From: aixssd!darrenk@abs.net (Darren King)
Date:
Subject: Re: [HACKERS] Problem with copying abstimes
Next
From: The Hermit Hacker
Date:
Subject: Re: [HACKERS] \dt and disk access