Re: [HACKERS] Re: initdb.sh fixed

From: Peter Eisentraut <e99re41(at)DoCS(dot)UU(dot)SE>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Re: initdb.sh fixed
Date: 1999-12-24 21:29:37
Message-ID: Pine.GSO.4.02A.9912242228200.11069-100000@Hamster.DoCS.UU.SE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, 19 Dec 1999, Bruce Momjian wrote:

> > Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > > We could argue that Postgres is the super-user for the database, it
> > > should be zero userid.
> >
> > Actually, that's quite a good thought --- is there *any* real need
> > for initdb to extract the UID of the postgres user? What we do need,
> > I think, is the *name* of the postgres user, which we might perhaps
> > get with something like
> >
> > whoami 2>/dev/null || id -u -n 2>/dev/null || echo postgres
>
> We currently have:
>
> EffectiveUser=`id -n -u 2> /dev/null` || EffectiveUser=`whoami 2> /dev/null`
>

If neither one of these resulted in anything it will ask you to provide a
string with --username. But I figure one must have one of those.

--
Peter Eisentraut Sernanders vaeg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 1999-12-24 21:35:57 Re: [HACKERS] Re: initdb.sh fixed7
Previous Message Thomas Lockhart 1999-12-24 19:05:46 Re: [HACKERS] Source code format votes