pg_resetxlog as root

Поиск
Список
Период
Сортировка
От Neil Conway
Тема pg_resetxlog as root
Дата
Msg-id 1102892217.23208.7.camel@localhost.localdomain
обсуждение исходный текст
Список pgsql-patches
We should prevent pg_resetxlog from being run as root: it writes new
files to $PGDATA, so running the tool as root will result in those files
being owned by root, which makes the data directory unusable.

Attached is a trivial patch that makes this change for Unix. I suppose a
similar fix is needed for Win32? If so, pgwin32_is_admin() would be the
natural routine to call, but that is currently in src/backend/port -- we
would need to move it to src/port, probably. Comments?

-Neil


Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: [HACKERS] regression script/makefile exit failure
Следующее
От: "Dave Page"
Дата:
Сообщение: Re: pg_resetxlog as root