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

From Andrew Dunstan
Subject Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM initscript
Date
Msg-id 44EF09A0.3050101@dunslane.net
Whole thread Raw
In response to Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM initscript  ("Sander Steffann" <s.steffann@computel.nl>)
Responses Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM initscript
List 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


pgsql-hackers by date:

Previous
From: "Sander Steffann"
Date:
Subject: Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM initscript
Next
From: Reinhard Max
Date:
Subject: Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init