Re: .psql_history": No such file

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: .psql_history": No such file
Дата
Msg-id 200906261814.59148.guillaume@lelarge.info
обсуждение исходный текст
Ответ на .psql_history": No such file  (ivan marchesini <marchesini@unipg.it>)
Ответы Re: .psql_history": No such file  (Shane Ambler <pgsql@Sheeky.Biz>)
Список pgsql-sql
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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: .psql_history": No such file
Следующее
От: Science
Дата:
Сообщение: Re: [pgsql-sql] Daily digest v1.3050 (5 messages)