Error Start Server PostgreSQL

* Restarting PostgreSQL 8.4 database server
* Insecure directory in $ENV{PATH} while running with -T switch at /usr/bin/pg_ctlcluster line 63.

To clean this up remove the postmaster and reset the group and general permissions.

  1. sudo rm /var/lib/postgresql/8.4/main/postmaster.pid
  2. sudo chown postgres:postgres /etc/postgresql/8.4/main/environment
  3. sudo chmod u+rw,g+rw /etc/postgresql/8.4/main/environment

 

Penyebabnya :
Server linux mengalami shutdown secara tidak lazim (akibat mati listrik).

 

Sumber : http://www.dangibbs.co.uk/journal/insecure-directory-in-envpath-while-running-with-t-switch-at-usrbinpg_ctlcluster