Re: Odd cruft in .psql_history in HEAD

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Odd cruft in .psql_history in HEAD
Дата
Msg-id 27703.1265856435@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Odd cruft in .psql_history in HEAD  (Jim Nasby <decibel@decibel.org>)
Список pgsql-hackers
Jim Nasby <decibel@decibel.org> writes:
> On Jan 13, 2010, at 9:32 PM, Tom Lane wrote:
>> Jim Nasby <decibel@decibel.org> writes:
>>> I noticed odd stuff showing up when I fired up an 8.3 psql after using psql in HEAD. It shows up in .psql_history
aswell:
 
>> 
>> Platform?  readline version?

> This is on snow leopard. FWIW it's still doing it with today's HEAD.

Oh.  On OSX the regular readline (really libedit) library likes to put
strange stuff into history files --- it turns spaces, backslashes,
and I don't know what else into backslash-octal escape sequences.
It manages to reverse the transformation just fine on read though.

What it looks like to me is that you've started linking psql with
some other version of readline that doesn't follow that convention,
and accordingly shows you strange things from the history file.
When/if you go back to libedit, it likely won't like the history
entries the other library made.

Short answer: stick to one readline library.
        regards, tom lane


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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)
Следующее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] Output configuration status after ./configure run.