Skip site navigation (1) Skip section navigation (2)

Re: possible bug in psql

From: Craig Ringer <ringerc(at)ringerc(dot)id(dot)au>
To: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: possible bug in psql
Date: 2012-05-30 01:13:06
Message-ID: 4FC57422.1090308@ringerc.id.au (view raw or flat)
Thread:
Lists: pgsql-sql
On 05/29/2012 07:48 PM, Jasen Betts wrote:
> On 2012-05-29, chester c young<chestercyoung(at)yahoo(dot)com>  wrote:
>> do not know if right mailing list
>>
>> in psql in Ubuntu, when beginning with a smaller terminal, eg, 80
>> col wide, then moving to a larger terminal, eg, 132 col wide, the
>> readline(?) editor in psql still treats like 80 cols, making it
>> impossible to edit longer text.
> As far as I know (as this is the behavior in debian stable)
> the ubuntu people use libgettext and not libreadline.
>
> You can force it to use libreadline by using LD_PRELOAD.  I reccomend
> that you do I did this by editing /usr/bin/psql which is a perl script
>
> In any case linux doesn't propogate SIG_WINCH to the other processes
> that are using the pty so even if you are using readline you have to
> force this by resizing the window again after exiting the pager, and
> then press ctrl-l to clear the screen.
It'd be nice if `less` would kill(SIGWINCH) its ppid since it is so 
often invoked as a helper. I guess they probably have good reasons not to.

--
Craig Ringer

In response to

pgsql-sql by date

Next:From: chester c youngDate: 2012-05-30 03:33:35
Subject: Re: possible bug in psql
Previous:From: Svenne KrapDate: 2012-05-29 15:19:16
Subject: Re: Job control in sql

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group