Re: Safer auto-initdb for RPM init script - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: Safer auto-initdb for RPM init script
Date
Msg-id 873bbkvpii.fsf@enterprisedb.com
Whole thread Raw
In response to Safer auto-initdb for RPM init script  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: [Pgsqlrpms-hackers] Safer auto-initdb for RPM init script
Next
From: Tom Lane
Date:
Subject: Re: Safer auto-initdb for RPM init script