Re: .psql_history": No such file

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: marchesini(at)unipg(dot)it
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: .psql_history": No such file
Date: 2009-06-26 16:11:54
Message-ID: 7963.1246032714@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

ivan marchesini <marchesini(at)unipg(dot)it> writes:
> I have installed a postgres db using a datadir different
> from /var/lib/pgsql/.psql_history.

> then:
> su postgres
> psql postgres

> All went fine but when I exit from psql from a db I obtain:
> _______
> could not save history to file "/var/lib/pgsql/.psql_history": No such
> file or directory
> _______

Apparently the postgres account still has HOME set to /var/lib/pgsql.
You'll want to make that point to some directory that actually exists.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Guillaume Lelarge 2009-06-26 16:14:58 Re: .psql_history": No such file
Previous Message ivan marchesini 2009-06-26 15:53:15 .psql_history": No such file