Re: BUG #16956: psql won't load command history

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #16956: psql won't load command history
Дата
Msg-id 1883668.1617897875@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #16956: psql won't load command history  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #16956: psql won't load command history  (Robin Knipe <robin.knipe@gmail.com>)
Список pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> Running the `psql` command from docker (postgres:12-alpine), fails to load
> the `.psql_history` command contents. Strangely, the session's commands ARE
> SAVED though! Also I can read the history contents in the psql session, as
> the following raw output shows:
> ```
> levqa=> \echo `echo $PSQL_HISTORY`
> /.psql_history
> levqa=> \echo `tail $PSQL_HISTORY`
> _HiStOrY_V2_
> _HiStOrY_V2_
> _HiStOrY_V2_
> _HiStOrY_V2_
> echo\040HISTCONTROL\012;
> `echo\040HISTCONTROL`\012;
> \134echo\040:HISTCONTROL
> \134echo\040:HISTFILE
> \134set\040HISTFILE\040/.psql_history
> \134echo\040:HISTFILE
> levqa=>
> ```

No concrete ideas to offer, but I'm pretty sure that that history-file
format is only supposed to have one "_HiStOrY_V2_" marker line at the
start.  Maybe getting rid of the extras would de-confuse it.

Anyway, none of Postgres' own code touches that file.  If there's a
bug here, it's in libedit.

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16955: Replication port problems
Следующее
От: Robin Knipe
Дата:
Сообщение: Re: BUG #16956: psql won't load command history