Re: 7.1beta4 initdb problem

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: 7.1beta4 initdb problem
Дата
Msg-id Pine.LNX.4.30.0102051802220.762-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: 7.1beta4 initdb problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: 7.1beta4 initdb problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom Lane writes:

> Probably initdb should have its own check for being run as root;
> this seems cleaner than reorganizing the checks in the postgres
> executable.

I does have that check, but unfortunately that check requires pg_id, and
finding the right pg_id requires finding the right postgres.  The "right
pg_id" is not entirely as trivial as it sounds, because pg_id's from <=6.5
have very different behaviour.

An alternative would be to find the right pg_id first based on its (to be
implemented) --version, and then double-checking for the right postgres.

--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


В списке pgsql-general по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: 7.1beta4 initdb problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: 7.1beta4 initdb problem