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

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql + libedit command history truncation (was: psql history vs. dearmor (pgcrypto))
Date: 2011-11-17 22:39:40
Message-ID: CAK3UJRGFbOUoF63s4cxwsPZOAotpLnA5oqp5k3Yv-rcTwPe2yw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Nov 14, 2011 at 7:04 PM, Josh Kupershmidt <schmiddy(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Royce Ausburn 2011-11-17 22:49:45 Re: [PATCH] Unremovable tuple monitoring
Previous Message Tom Lane 2011-11-17 22:29:29 Re: Refactoring on DROP/ALTER SET SCHEMA/ALTER RENAME TO statement