Re: [HACKERS] Re: initdb.sh fixed
От | Bruce Momjian |
---|---|
Тема | Re: [HACKERS] Re: initdb.sh fixed |
Дата | |
Msg-id | 199912200440.XAA25315@candle.pha.pa.us обсуждение исходный текст |
Ответ на | Re: [HACKERS] Re: initdb.sh fixed (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [HACKERS] Re: initdb.sh fixed
Re: [HACKERS] Re: initdb.sh fixed |
Список | pgsql-hackers |
> 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` -- Bruce Momjian | http://www.op.net/~candle maillist@candle.pha.pa.us | (610) 853-3000+ If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania19026
В списке pgsql-hackers по дате отправления: