Re: Safer auto-initdb for RPM init script
Greg Stark <stark@enterprisedb.com>
From: Gregory Stark <stark@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsqlrpms-hackers@pgfoundry.org, pgsql-hackers@postgreSQL.org
Date: 2006-08-25T14:49:57Z
Lists: 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