From: Guillaume Lelarge <guillaume@lelarge.info>
To: pgsql-sql@postgresql.org
To: marchesini@unipg.it
Subject: Re: .psql_history": No such file
Date: Fri, 26 Jun 2009 18:14:58 +0200
Message-ID: <200906261814.59148.guillaume@lelarge.info> (raw)
In-Reply-To: <1246031595.4836.27.camel@ivangeo>
References: <1246031595.4836.27.camel@ivangeo>
Hi Ivan,
Le vendredi 26 juin 2009 à 17:53:15, ivan marchesini a écrit :
> [...]
> 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
> _______
>
> how can I fix this problem? where can I say psql that it must
> write .psql_history into the datadir?
>
psql tries to write there because the home directory of the postgres user is
/var/lib/postgres. Probably better to use HISTFILE to change it (\set HISTFILE
'/path/to/histfile').
Regards.
--
Guillaume.
http://www.postgresqlfr.orghttp://dalibo.com
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: guillaume@lelarge.info, marchesini@unipg.it
Subject: Re: .psql_history": No such file
In-Reply-To: <200906261814.59148.guillaume@lelarge.info>
* 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