I am reading this thread and the manual of PostgreSQL 9.4. I run
ps auxw | grep postgres | grep -- -D
but get
postgres 17340 0.0 0.5 226700 21756 ? S 09:50 0:00 /usr/lib/postgresql/9.4/bin/postgres -D /var/lib/postgresql/9.4/main -c config_file=/etc/postgresql/9.4/main/postgresql.conf
but the default installation location should be /usr/local/pgsql/
according to the manual at file:///usr/share/doc/postgresql-doc-9.4/html/install-short.html.
It may be possible that the database was initdb
in the /usr/lib/
directory.
How can you change the installation location of PostgreSQL?