Re: initdb.sh fixed

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: initdb.sh fixed
Дата
Msg-id 199912200217.VAA19700@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: initdb.sh fixed  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: [HACKERS] Re: initdb.sh fixed  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
[Charset ISO-8859-1 unsupported, filtering to ASCII...]
> On 1999-12-18, Bruce Momjian mentioned:
> 
> > The big problem seems to be reliance on bash-isms like $UID and
> > functions with spaces like:
> 
> Bash tells me that is it's invoked as 'sh' it will behave like 'sh', but
> it's lying ...

Yes, certain _extensions_ show through.

> 
> > > 'insert ( data data data )' bootstrap commands are containing gaps. On the
> > > other hand, this was one of the key things that were supposed to be
> > > improved because relying on $USER was not su-safe. Maybe $UID would work,
> > > since initdb isn't supposed to be setuid anyway.
> > 
> > Again, a bash-ism.  Let's face, it, the postgres binary is going to
> > croak on root anyway, so we are just doing an extra check in initdb.
> 
> But the point was to initialize to superuser id in Postgres as that
> number, but we might as well start them out at 0, like it is now.

Seems either $USER or $LOGNAME should be set in all cases.

--  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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Re: [PATCHES] Lock
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: pgindent (Re: [HACKERS] LONG varsize - how to go on)t