Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM initscript

Sander Steffann <s.steffann@computel.nl>

From: "Sander Steffann" <s.steffann@computel.nl>
To: <pgsqlrpms-hackers@pgfoundry.org>
Cc: <pgsql-hackers@postgreSQL.org>
Date: 2006-08-25T14:27:51Z
Lists: pgsql-hackers
Hi,
 
> 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.

Isn't the most bulletproof solution to make initdb more careful about
overwriting an existing data directory?

- Sander