Re: Ownership/protection (was Re: [HACKERS] Portability) - Mailing list pgsql-hackers

From Vince Vielhaber
Subject Re: Ownership/protection (was Re: [HACKERS] Portability)
Date
Msg-id Pine.BSF.4.05.9911301250082.13266-100000@paprika.michvhf.com
Whole thread Raw
In response to Ownership/protection (was Re: [HACKERS] Portability)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Tue, 30 Nov 1999, Tom Lane wrote:

> ./configure
> make
> su root
> make install
> initdb --owner=postgres --pgdata=whatever
> exit from su
> start postmaster

./configure --with-pguser=postgres
make
sudo make install

is what I've been pushing for.  That way when you do the installation
it'll happen something like

/usr/bin/install -c -d -g postgres -o postgres FILE-TO-BE-INSTALLED

the -c copies, the -d creates the missing directories, different install
programs do things differently.  The -g and -o come from the configure
switch --with-pguser and maybe even --with-pggroup.  The defaults should
be postgres for both.  initdb can then have those values built in, yet
overridable.

Vince.
-- 
==========================================================================
Vince Vielhaber -- KA8CSH   email: vev@michvhf.com   flame-mail: /dev/null # include <std/disclaimers.h>       Have you
seenhttp://www.pop4.net?       Online Campground Directory    http://www.camping-usa.com      Online Giftshop
Superstore   http://www.cloudninegifts.com
 
==========================================================================





pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [ADMIN] When postgres will be faster?
Next
From: Brian E Gallew
Date:
Subject: Re: [HACKERS] Re: tab completion in psql