Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 791271AEC92D for ; Wed, 30 May 2012 00:33:52 -0300 (ADT) Received: from nm8-vm0.bullet.mail.bf1.yahoo.com ([98.139.213.95]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1SZZfR-0005Bg-Gt for pgsql-sql@postgresql.org; Wed, 30 May 2012 03:33:51 +0000 Received: from [98.139.212.145] by nm8.bullet.mail.bf1.yahoo.com with NNFMP; 30 May 2012 03:33:35 -0000 Received: from [98.139.212.232] by tm2.bullet.mail.bf1.yahoo.com with NNFMP; 30 May 2012 03:33:35 -0000 Received: from [127.0.0.1] by omp1041.mail.bf1.yahoo.com with NNFMP; 30 May 2012 03:33:35 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 753278.21763.bm@omp1041.mail.bf1.yahoo.com Received: (qmail 64921 invoked by uid 60001); 30 May 2012 03:33:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1338348815; bh=UD1nUBpKU9D2R+LxCqtjHBcJZIcf75XNLMZxNZgV2j8=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MHrImSg8dDv8/3I1flCLh7w7Gokamp0IjknPXE7k+Mvct9loI57e45sBjzmCmr2dLC0/RpZIt3EGj3/Xq/ZpSUcOw/6T6Ym47WceodH+fEv4zqGMnFBfFpUc5ZcLmfHrHCqtdOGv1XHzhdBWI8InHerpSnnImo6rmWeY7Z/HrXE= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=U1dnxVS13BbSGwBv7xBOIvJZxMcN9vzPSt+krs2JpXgbjRZh4g+bs+6btFmT0OfUCAtLECw2xVR0mLsYbMR59g59WZVnb8gappRZQFLMaZlk4IBBqbvB0uektWBiqpLTZ6NVYQdOzKvH9oIaceDEhElc8HBh1NaUhY+Ho+AT5Oc=; X-YMail-OSG: yvUZHG8VM1nJAsSTAUvlmQprRc9K0TzbXbS_v8tMK3fwefO OkbeG_KeNq6X5KyeO.dcqulUO431lsk4D7RVS_7qPvGW0t6Rs0AnXXF1cwSj X3PYqDAfI8oVAg_y6YSiwuli7kEJgyMKjuY31WmcmrqsPxu3zJtKUOLeLLSd hySeP4bVV9L0xnrjIG8B68xrjP4bqFfk8JALQa7SMLKsHEWIj.EFLHzrnOHz KDTTlUOhmf7T87.3Voi_6BFVNfMwJQY72rw.QZuoPn2.nq48IL3AnjsRUC2a XMJy8zlKtFn3GiKnm_RhTdVDJMs7AjkMU_ZMj_bvlCEysyz8eTyfO3EJBLi8 P1u3duJE7dMJsg_FzaSVC4QnjdlHTxieFwtkLKjpYleyWn8rqRx6CXxwo9VA 4erxZvFocYOdFMinj2T0hFFIyA5Gk8hF4cVzwbc4LgSjKpuVmyOux9gBkRSv FKbrqrFhXbXa733njaHylDI0EPf0JkeG_WG_sulonsRcuLVBBZ0B. Received: from [49.49.63.184] by web161406.mail.bf1.yahoo.com via HTTP; Tue, 29 May 2012 20:33:35 PDT X-Mailer: YahooMailClassic/15.0.6 YahooMailWebService/0.8.118.349524 Message-ID: <1338348815.61964.YahooMailClassic@web161406.mail.bf1.yahoo.com> Date: Tue, 29 May 2012 20:33:35 -0700 (PDT) From: chester c young Subject: Re: possible bug in psql To: Jasen Betts , pgsql-sql@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.0 (--) X-Archive-Number: 201205/104 X-Sequence-Number: 36652 > > do not know if right mailing list=0A> >=0A> > in psql in Ubuntu, when b= eginning with a smaller=0A> terminal, eg, 80=0A> > col wide, then moving to= a larger terminal, eg, 132 col=0A> wide, the=0A> > readline(?) editor in p= sql still treats like 80 cols,=0A> making it=0A> > impossible to edit longe= r text.=A0 =A0 =0A> =0A> As far as I know (as this is the behavior in debia= n stable)=0A> the ubuntu people use libgettext and not libreadline.=0A> =0A= > You can force it to use libreadline by using=0A> LD_PRELOAD.=A0 I reccome= nd =0A> that you do I did this by editing /usr/bin/psql which is a=0A> perl= script=0A> =0A> In any case linux doesn't propogate SIG_WINCH to the other= =0A> processes=0A> that are using the pty so even if you are using readline= you=0A> have to =0A> force this by resizing the window again after exiting= the=0A> pager, and=0A> then press ctrl-l to clear the screen. =0A=0Aseems = to me that Ubuntu is using readline (but I might be wrong)=0A=0Afrom /usr/b= in/psql:=0A=0A# libreadline is a lot better than libedit, so prefer that=0A= if ($cmdname eq 'psql') {=0A my @readlines;=0A push @readlines, sort(= );=0A if (@readlines) {=0A $ENV{'LD_PRELOAD'} = =3D ($ENV{'LD_PRELOAD'} or '') . ':' . $readlines[-1];=0A }=0A}=0A=0Aals= o, LD_PRELOAD is not referenced anywhere in /etc/postgrest/...