Re: psql + libedit command history truncation (was: psql history vs. dearmor (pgcrypto))

Поиск
Список
Период
Сортировка
От Josh Kupershmidt
Тема Re: psql + libedit command history truncation (was: psql history vs. dearmor (pgcrypto))
Дата
Msg-id CAK3UJRGFbOUoF63s4cxwsPZOAotpLnA5oqp5k3Yv-rcTwPe2yw@mail.gmail.com
обсуждение исходный текст
Ответ на psql + libedit command history truncation (was: psql history vs. dearmor (pgcrypto))  (Josh Kupershmidt <schmiddy@gmail.com>)
Список pgsql-hackers
On Mon, Nov 14, 2011 at 7:04 PM, Josh Kupershmidt <schmiddy@gmail.com> wrote:
> But it reminded me of another issue. With OS X 10.6.8, and otool -L
> reporting that psql depends on libedit version 2.11.0, the up-arrow
> recall of Tomas' query gets truncated around here:
>  5I0/NTm+fFkB0McY9E2fAA [rest of the line missing]

For the curious, this does appear to be a hardcoded limit in libedit.
A bit of digging through a tarball of libedit-20110802-3.0 turned up
this line in el.h:

#define EL_BUFSIZ       ((size_t)1024)  /* Maximum line size            */

which you can bump up as a work-around.

Josh


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Refactoring on DROP/ALTER SET SCHEMA/ALTER RENAME TO statement
Следующее
От: Royce Ausburn
Дата:
Сообщение: Re: [PATCH] Unremovable tuple monitoring