On Sun, 19 Dec 1999, Bruce Momjian wrote:
> > Bruce Momjian <pgman@candle.pha.pa.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@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden