Re: Safer auto-initdb for RPM init script

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Safer auto-initdb for RPM init script
Дата
Msg-id 873bbkvpii.fsf@enterprisedb.com
обсуждение исходный текст
Ответ на Safer auto-initdb for RPM init script  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> Comments?  Anyone see a better way?

Well the truly bullet-proof mechanism would be to check every data file on
every open. You could have a header with some kind of unique tag generated at
initdb time and the backend could ensure it matches the same tag in the
control flag whenever you open a data file.

That might be too expensive though I don't see data files getting opened all
that frequently. You could do the same thing for free by putting the tag in
the file names though.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init script
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Safer auto-initdb for RPM init script