In my case (FreeBSD 6 and 7) psql does not freezes, but for some reason
part of pasted code get corrupted when size of the code relatively big.
It seems like some timeout used, or buffer overflows: 1. locally with xterm for the first time pasting function of 9K: base=> create or replace function football_recalc_match_stat(bigint) returns void as $$ declare < here i see rows 1-52 of function without 'base$>' prefix > where football_match = match and match_event_type in (3, 12)base$> declare base$> match alias for $1; < here i see rows 1-117 of function with 'base$>' prefix > < here i see rows 166-till the end of the func with 'base$>' prefix> and got error in function body at the row 118. 2-10 locally and via ssh to localhost with xterm -- no problem. 11 - to remote host via ssh with xterm base=> create or replace function football_recalc_match_stat(bigint) returns void as $$ declare < here i see rows 1-52 of function without 'base$>' prefix > where football_match = match and match_event_type in (3, 12)sovsport$> declare base$> match alias for $1; < here i see rows 1-23 of function with 'base$>' prefix, last row truncated > base$> and that's all 11 stable reproduced for several times with problems on the same rows. uname -a FreeBSD 6.3-RELEASE-p2 FreeBSD 6.3-RELEASE-p2 #0: Wed Sep 3 09:41:48 MSD 2008 i386 set | grep LANG LANG=ru_RU.UTF-8 pkg_info -r postgresql-client-8.2.7 Information for postgresql-client-8.2.7: Depends on: Dependency: libiconv-1.11_1 Dependency: gettext-0.16.1_3 Tom Lane wrote: Merlin Moncure <mmoncure@xxxxxxxxx> writes:I'm starting to 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?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 |