From: Tom Lane <tgl@sss.pgh.pa.us>
To: marchesini@unipg.it
Cc: pgsql-sql@postgresql.org
Subject: Re: .psql_history": No such file
Date: Fri, 26 Jun 2009 12:11:54 -0400
Message-ID: <7963.1246032714@sss.pgh.pa.us> (raw)
In-Reply-To: <1246031595.4836.27.camel@ivangeo>
References: <1246031595.4836.27.camel@ivangeo>
ivan marchesini <marchesini@unipg.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, marchesini@unipg.it
Subject: Re: .psql_history": No such file
In-Reply-To: <7963.1246032714@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox