Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 3781D1E3FC7C for ; Tue, 29 May 2012 22:13:26 -0300 (ADT) Received: from mail-pz0-f46.google.com ([209.85.210.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SZXTY-0001kX-Oj for pgsql-sql@postgresql.org; Wed, 30 May 2012 01:13:25 +0000 Received: by dady13 with SMTP id y13so6188825dad.19 for ; Tue, 29 May 2012 18:13:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=VPZLAK4s/a0KAD50etB0ug06VOSxkZR/DEzX79xSvIQ=; b=iwSTqObzGevxpv35KVEH+3vhnYsQSLEiHvCp2WKBiNYogtMRiMhkAFarFAWRNR50c4 yFG8gI9Z7qGr2Wa0iwu/ecwKeIbCtVGn7h9kQ06Y4qpPGFGZD/tfbKIUZng5Vos8n5EC sCR+HuIYqClwIH1K2O7TH2+FUxeRhta6fIGVbObI8lHE9RpxGpLqSCt9kB8dpmy46jVJ huFPFhqGcdy9g9ikhcmsL1vUxy0Koq+U6BUKoUt2gI54OhoZn3t2kuCSgMKA89wih04D Ia/FXcUXvqiMLRmKh2diDuUzOlSQlxB5WBEsWfXU3O0zhQ84fr9Kna8zVUC9zEosuvoO 8G8g== Received: by 10.68.234.97 with SMTP id ud1mr14635881pbc.152.1338340392018; Tue, 29 May 2012 18:13:12 -0700 (PDT) Received: from wallace.localnet (office1.postnewspapers.com.au. [150.101.171.128]) by mx.google.com with ESMTPS id ua6sm21312605pbc.20.2012.05.29.18.13.09 (version=SSLv3 cipher=OTHER); Tue, 29 May 2012 18:13:11 -0700 (PDT) Message-ID: <4FC57422.1090308@ringerc.id.au> Date: Wed, 30 May 2012 09:13:06 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: Jasen Betts CC: pgsql-sql@postgresql.org Subject: Re: possible bug in psql References: <1338261095.25964.YahooMailClassic@web161405.mail.bf1.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQncGsp3nGV0fCAA+52UvQyaBwFNXZ6ghqPdhvZrjmj+oF7uPqXimXy8FRG4x+mdHx+//bLm X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/103 X-Sequence-Number: 36651 On 05/29/2012 07:48 PM, Jasen Betts wrote: > On 2012-05-29, chester c young 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