Re: initdb and "exit_nicely"...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Len Morgan" <len-morgan(at)crcom(dot)net>
Cc: pgsql-general(at)hub(dot)org
Subject: Re: initdb and "exit_nicely"...
Date: 2000-05-18 15:05:58
Message-ID: 23482.958662358@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Len Morgan" <len-morgan(at)crcom(dot)net> writes:
> The reason that IMHO this deserves a little consideration (i.e., doing it at
> all rather than just saying "Don't store any files in PG_DATA") is that
> RedHat based rpm installations create the postgres superuser account as part
> of the process and set the home directory for this user to PG_DATA.

To be blunt, that's *incredibly* brain dead. The contents of the PGDATA
directory are way too critical to be the account's home directory. The
correct fix for this is to change the way the RPM sets up the account.

I don't think we are doing anyone a service if we tweak initdb in a way
that will make it slightly safer to keep random files in PGDATA. You
shouldn't do it anyway, and modifying initdb to make it look like you
can will only increase the risk of people accidentally screwing up their
installation.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-05-18 15:24:31 Re: Passing arguments to and INDEX function.
Previous Message Pierre AUSSOURD 2000-05-18 15:03:54 [ Postgres DLL for Apache/PHP Win32 ]