DATA_DIR is not set in init.d script therefore postgresql will not start. Is DATA_DIR a redundant variable? PGDATA var contains the same information. localhost # /etc/init.d/postgresql-9.0 start * Caching service dependencies ... [ ok ] * Starting PostgreSQL ... postgres cannot access the server configuration file "/var/lib/postgresql/ /var/lib/postgresql/9.0/data --data-directory= --silent-mode=true -N 512 -B 1024 -i /postgresql.conf": No such file or directory Reproducible: Always Steps to Reproduce: 1. upgrade to dev-db/postgresql-server-9.0.3-r2 from dev-db/postgresql-server-9.0.3 2. 3.
No, it isn't a redundant variable, though PGDATA and DATA_DIR may be set to the same location. 9.0.3-r3 includes a check for an empty DATA_DIR.