Re: installing postgres7.3.4 problem

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: javier garcia - CEBAS <rn001(at)cebas(dot)csic(dot)es>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: installing postgres7.3.4 problem
Date: 2003-08-26 17:05:25
Message-ID: Pine.LNX.4.44.0308261901150.1185-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

javier garcia - CEBAS writes:

> # su - postgres
> (I don't know the meaning of a "login shell", but this is not my problem)
> And then appears the message (in spanish):
> "su: atention: we can't change to the directory /var/lib/pgsql: the directory
> or file doesn't exists"
>
> Previously I had postgres databases in /var/lib/pgsql. But I've uninstalled
> the previously the 7.2 version and I don't know why this happens.

Apparently, the home directory of your user "postgres" is set to
/var/lib/pgsql. So when you login in as that user, it tries to change to
that directory. When you removed the old PostgreSQL package, the
directory was probably deleted, so now changing the directory fails.

So you have two options now:

1. Recreate the directory /var/lib/pgsql (and use it as your database
directory, if you like).

2. Change the home directory of the user "postgres" (usermod -d
/new/location postgres). This might light to complications if at some
point you want to reinstall an RPM package for PostgreSQL.

The other option is that you look for an RPM package of the PostgreSQL
version you want for your distribution.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2003-08-26 17:08:42 Re: is linux ready for databases ? (Ziff Davis article
Previous Message Doug McNaught 2003-08-26 16:57:38 Re: is linux ready for databases ? (Ziff Davis article