Re: bogus psql "could not save history file[...]" message in 9.3.6

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bogus psql "could not save history file[...]" message in 9.3.6
Дата
Msg-id 31313.1426298202@sss.pgh.pa.us
обсуждение исходный текст
Ответ на bogus psql "could not save history file[...]" message in 9.3.6  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: bogus psql "could not save history file[...]" message in 9.3.6  (Jeff Frost <jeff@pgexperts.com>)
Список pgsql-bugs
"David G. Johnston" <david.g.johnston@gmail.com> writes:
>> \q # 'could not save history to file "/var/lib/postgresql/.psql_history":
> No such file or directory' !!!

BTW, I poked around in the libedit sources and noted that it will call
wctomb() during write_history(), assuming it's configured to support wide
characters.  Working hypothesis is that wctomb() is trying to read some
locale configuration file and not finding it, which it's probably okay
with, but our is-errno-set check is unhappy later.  This behavior might
well vary depending on what locale environment you have set.

strace'ing psql while it exits might be informative.

            regards, tom lane

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: bogus psql "could not save history file[...]" message in 9.3.6
Следующее
От: Jeff Frost
Дата:
Сообщение: Re: bogus psql "could not save history file[...]" message in 9.3.6