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

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Sander Steffann <s(dot)steffann(at)computel(dot)nl>
Cc: pgsqlrpms-hackers(at)pgfoundry(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM initscript
Date: 2006-08-25 14:30:56
Message-ID: 44EF09A0.3050101@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Sander Steffann wrote:
> 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?
>
>

It is extremely careful. The point is that the NFS mount will hide the
existing datadir from initdb.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Reinhard Max 2006-08-25 14:31:54 Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init
Previous Message Sander Steffann 2006-08-25 14:27:51 Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM initscript