> Starting postgresql service: /usr/bin/postmaster does not find the
database
> system. Expected to find it in the PGDATA directory "/var/lib/pgsql",
but unable
> to open file with pathname "/var/lib/pgsql/base/template1/pg_class".
> No data directory -- can't proceed.
> postmaster []
Matt,
Usually Postgres is not installed under /var/lib. It looks like your
error is occurring because your system is trying to find Postgres there.
Unless you changed the destination directory (i.e. configure
--prefix=/var/lib), it should be all under /usr/local/pgsql.
To start the postmaster, just do the following:
1. Locate where Postgres is on your system (usually /usr/local/pgsql but
if you're not sure try 'cd / ; find . -name postmaster' to search your
system for the postmaster program).
2. Change your environmental variable called PGDATA to the Postgres
directory
3. Now try 'nohup $POSTGRES/bin/postmaster -i > pg.log&' to start the
postmaster (where $POSTGRES is replace with whatever your Postgres
directory is -- again, usually /usr/local/pgsql unless you specified a
change).
Hope that helps.
-Tony