The following bug has been logged on the website:
Bug reference: 7739
Logged by: Chip Schweiss
Email address: chip.schweiss@wustl.edu
PostgreSQL version: 9.2.2
Operating system: Centos 6.3
Description: =
If I set the following in sysconfig:
PGDATA=3D/pgdata
PGLOG=3D/pgdata/pgstartup.log
service postgresql-9.2 initdb will fail because /pgdata is not empty when it
is checking. =
When out the PGLOG line, initdb will succeed and it can be added back. =