Re: psql + libedit command history truncation (was: psql history vs. dearmor (pgcrypto)) - Mailing list pgsql-hackers

From Josh Kupershmidt
Subject Re: psql + libedit command history truncation (was: psql history vs. dearmor (pgcrypto))
Date
Msg-id CAK3UJRGFbOUoF63s4cxwsPZOAotpLnA5oqp5k3Yv-rcTwPe2yw@mail.gmail.com
Whole thread Raw
In response to psql + libedit command history truncation (was: psql history vs. dearmor (pgcrypto))  (Josh Kupershmidt <schmiddy@gmail.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Refactoring on DROP/ALTER SET SCHEMA/ALTER RENAME TO statement
Next
From: Royce Ausburn
Date:
Subject: Re: [PATCH] Unremovable tuple monitoring