Re: pasting into psql garbles text - Mailing list pgsql-general

From Роман Маширов
Subject Re: pasting into psql garbles text
Date
Msg-id 4A488012.7040008@nandu.ru
Whole thread Raw
In response to Re: pasting into psql garbles text  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
In my case (FreeBSD 6 and 7) psql does not freezes, but for some reason part of pasted code get corrupted when size of
thecode relatively big. It seems like some timeout used, or buffer overflows:<br /><br /> 1. locally with xterm for the
firsttime pasting function of 9K:<br /> base=> create or replace function football_recalc_match_stat(bigint) returns
voidas $$<br />     declare <br /><br /> < here i see rows 1-52 of function without 'base$>' prefix ><br /><br
/>                where football_match = match and match_event_type in (3, 12)base$>     declare <br />
base$>        match alias for $1;<br /><br /> < here i see rows 1-117 of function with 'base$>' prefix ><br
/>< here i see rows 166-till the end of the func with 'base$>' prefix><br /><br /> and got error in function
bodyat the row 118.<br /><br /><br /> 2-10 locally and via ssh to localhost with xterm -- no problem.<br /><br /><br />
11- to remote host via ssh with xterm<br /> base=> create or replace function football_recalc_match_stat(bigint)
returnsvoid as $$<br />     declare <br /><br /> < here i see rows 1-52 of function without 'base$>' prefix
><br/><br />                 where football_match = match and match_event_type in (3, 12)sovsport$>     declare
<br/> base$>         match alias for $1;<br /><br /> < here i see rows 1-23 of function with 'base$>' prefix,
lastrow truncated ><br /> base$><br /> and that's all<br /><br /><br /> 11 stable reproduced for several times
withproblems on the same rows.<br /><br /> uname -a<br /> FreeBSD  6.3-RELEASE-p2 FreeBSD 6.3-RELEASE-p2 #0: Wed Sep  3
09:41:48MSD 2008 i386<br /><br /> set | grep LANG<br /> LANG=ru_RU.UTF-8<br /><br /> pkg_info -r
postgresql-client-8.2.7<br/> Information for postgresql-client-8.2.7:<br /><br /> Depends on:<br /> Dependency:
libiconv-1.11_1<br/> Dependency: gettext-0.16.1_3<br /><br /><br /> Tom Lane wrote: <blockquote
cite="mid:19349.1246137153@sss.pgh.pa.us"type="cite"><pre wrap="">Merlin Moncure <a class="moz-txt-link-rfc2396E"
href="mailto:mmoncure@gmail.com"><mmoncure@gmail.com></a>writes: </pre><blockquote type="cite"><pre wrap="">I'm
startingto feel like my problems start appearing at a very fixed 
size (like you, a few hundred or so).   Do you see this in other
programs (bash, vim, etc)? or only psql?   </pre></blockquote><pre wrap="">
I've only noticed it in psql, but there are not that many other programs
that I tend to paste lots of input into.

(experiments...)  Hmm, and another interesting thing is that it only
seems to happen on my HPUX system, which is (intentionally) running a
pretty ancient version of readline ... 4.2a looks like.  My Fedora 10
box with readline 5.2 eats the same amount of pasted text without
indigestion.  What readline version are you using?
        regards, tom lane
 </pre></blockquote><br />

pgsql-general by date:

Previous
From: Jasen Betts
Date:
Subject: Re: pasting into psql garbles text
Next
From: Jasen Betts
Date:
Subject: Re: possible bug on age() function (8.2.4 , 8.3.6)