To recreate the problem
I install FC3 on a server with SELINUX=enforcing and SELINUXTYPE=targeted
after, I install postgresql and do initdb with the user postgres
-bash-3.00$ /usr/bin/initdb The files belonging to this database system will be owned by user "postgres". This user must also own the server process.
The database cluster will be initialized with locale en_US.UTF-8.
fixing permissions on existing directory /var/lib/pgsql/data... ok creating directory /var/lib/pgsql/data/base... ok creating directory /var/lib/pgsql/data/global... ok creating directory /var/lib/pgsql/data/pg_xlog... ok creating directory /var/lib/pgsql/data/pg_clog... ok selecting default max_connections... 100 selecting default shared_buffers... 1000 creating configuration files... ok creating template1 database in /var/lib/pgsql/data/base/1... ok initializing pg_shadow... ok enabling unlimited row size for system tables... ok initializing pg_depend... ok creating system views... ok loading pg_description... ok creating conversions... ok setting privileges on built-in objects... ok creating information schema... initdb: failed
To fix that, i must to disable SELinux => SELINUX=disabled in /etc/sysconfig/selinux
restart my server
log in with the user posgres
rm -rf /var/lib/pgsql/data/* && /usr/bin/initdb
and that's work