Re: Safer auto-initdb for RPM init script

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Safer auto-initdb for RPM init script
Дата
Msg-id
24027.1156515647@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Safer auto-initdb for RPM init script Tom Lane <tgl@sss.pgh.pa.us>
Re: Safer auto-initdb for RPM init script Peter Eisentraut <peter_e@gmx.net>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init script Joe Conway <mail@joeconway.com>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init script "Jim C. Nasby" <jnasby@pervasive.com>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init script Alvaro Herrera <alvherre@commandprompt.com>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init Andrew Dunstan <andrew@dunslane.net>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init Alvaro Herrera <alvherre@commandprompt.com>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init "Joshua D. Drake" <jd@commandprompt.com>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init "Jim C. Nasby" <jnasby@pervasive.com>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init "Matthew T. O'Connor" <matthew@zeut.net>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init "Joshua D. Drake" <jd@commandprompt.com>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init "Matthew T. O'Connor" <matthew@zeut.net>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init "Lamar Owen" <lowen@pari.edu>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init Reinhard Max <max@suse.de>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init Andrew Dunstan <andrew@dunslane.net>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init Devrim GUNDUZ <devrim@commandprompt.com>
Re: Safer auto-initdb for RPM init script "Magnus Hagander" <mha@sollentuna.net>
Re: Safer auto-initdb for RPM init script Tom Lane <tgl@sss.pgh.pa.us>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM initscript "Sander Steffann" <s.steffann@computel.nl>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM initscript Andrew Dunstan <andrew@dunslane.net>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM initscript Enver ALTIN <ealtin@parkyeri.com>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM initscript Peter Eisentraut <peter_e@gmx.net>
Re: Safer auto-initdb for RPM init script Peter Eisentraut <peter_e@gmx.net>
Re: Safer auto-initdb for RPM init script Tom Lane <tgl@sss.pgh.pa.us>
Re: Safer auto-initdb for RPM init script Peter Eisentraut <peter_e@gmx.net>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init Reinhard Max <max@suse.de>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init Peter Eisentraut <peter_e@gmx.net>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init "Bort, Paul" <pbort@tmwsystems.com>
Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init script Tom Lane <tgl@sss.pgh.pa.us>
Re: Safer auto-initdb for RPM init script Gregory Stark <stark@enterprisedb.com>
"Magnus Hagander"  writes:
>> I don't really want to remove the auto-initdb feature from the
>> script, because it's important not to drive away newbies by making
>> Postgres hard to start for the first time.  But I think we'd better
>> think about ways to make it more bulletproof.

> Why does initdb have to happen on startup? Wouldn't it be much more
> logical to do it at install time?

It eats rather a lot of disk space for a package that might just be
getting loaded as part of a system install, with no likelihood of
actually being used.  In CVS tip a just-initdb'd data directory seems
to be a shade under 30MB, which I guess isn't a huge amount these days
but it compares unfavorably with the installed footprint of the code
itself (postgresql-server RPM looks to be about 4MB).

If this were a bulletproof solution then I'd consider it anyway, but
AFAICS it's got the very same vulnerabilities as the flag-file method,
ie, if you RPM install or upgrade while your mountable data directory
is offline, you can still get screwed.
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: Böszörményi Zoltán
Дата:
От: Joe Conway
Дата:
FAQ