Re: [GENERAL] pasting into psql garbles text

2009-06-29 Thread Scott Mead
On Mon, Jun 29, 2009 at 10:49 AM, Cédric Villemain < cedric.villem...@dalibo.com> wrote: > Le samedi 27 juin 2009, Merlin Moncure a écrit : > > > > > Interestingly, the one platform that tends not to suffer from this is > > windows so I'm guessing this is a readline problem. Has anybody else > >

Re: [GENERAL] pasting into psql garbles text

2009-06-29 Thread Merlin Moncure
On Sat, Jun 27, 2009 at 5:12 PM, Tom Lane wrote: > Merlin Moncure 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 t

Re: [GENERAL] pasting into psql garbles text

2009-06-29 Thread Cédric Villemain
Le samedi 27 juin 2009, Merlin Moncure a écrit : > I've noticed over a wide variety of operating systems that when you > paste from an application into psql through a terminal (currently > using the default gnome terminal in ubuntu), large pastes tend to get > garbled with some of the input getting

Re: [GENERAL] pasting into psql garbles text

2009-06-29 Thread Роман Маширов
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 functi

Re: [GENERAL] pasting into psql garbles text

2009-06-29 Thread Jasen Betts
On 2009-06-27, Merlin Moncure wrote: > I've noticed over a wide variety of operating systems that when you > paste from an application into psql through a terminal (currently > using the default gnome terminal in ubuntu), large pastes tend to get > garbled with some of the input getting truncated.

Re: [GENERAL] pasting into psql garbles text

2009-06-27 Thread Tom Lane
Merlin Moncure 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 past

Re: [GENERAL] pasting into psql garbles text

2009-06-27 Thread Merlin Moncure
On Sat, Jun 27, 2009 at 2:56 PM, Greg Stark wrote: > On Sat, Jun 27, 2009 at 7:26 PM, Merlin Moncure wrote: >> >> It doesn't matter the source application...it borks regardless if I >> copy from Source insight/wine (my normal editor), gedit, or another >> gnome terminal. > > Are these all gtk apps?

Re: [GENERAL] pasting into psql garbles text

2009-06-27 Thread Tom Lane
Merlin Moncure writes: > I confirmed that xterm does not exhibit the issue. So this is at > least partially a terminal problem. However, xterm does not directly > accept pastes from wine clipboard apparently. it only works if I copy > it to gedit first, then into xterm. > The _only_ terminal ap

Re: [GENERAL] pasting into psql garbles text

2009-06-27 Thread Greg Stark
On Sat, Jun 27, 2009 at 7:26 PM, Merlin Moncure wrote: > > It doesn't matter the source application...it borks regardless if I > copy from Source insight/wine (my normal editor), gedit, or another > gnome terminal. Are these all gtk apps? Try pasting from an emacs or xterm? -- greg http://mit.ed

Re: [GENERAL] pasting into psql garbles text

2009-06-27 Thread Merlin Moncure
On Sat, Jun 27, 2009 at 1:38 PM, Greg Stark wrote: > On Sat, Jun 27, 2009 at 6:19 PM, Merlin Moncure wrote: >> I've noticed over a wide variety of operating systems that when you >> paste from an application into psql through a terminal (currently >> using the default gnome terminal in ubuntu) > >

Re: [GENERAL] pasting into psql garbles text

2009-06-27 Thread Leif B. Kristensen
On Saturday 27. June 2009, Merlin Moncure wrote: >I've noticed over a wide variety of operating systems that when you >paste from an application into psql through a terminal (currently >using the default gnome terminal in ubuntu), large pastes tend to get >garbled with some of the input getting tru

Re: [GENERAL] pasting into psql garbles text

2009-06-27 Thread Greg Stark
On Sat, Jun 27, 2009 at 6:19 PM, Merlin Moncure wrote: > I've noticed over a wide variety of operating systems that when you > paste from an application into psql through a terminal (currently > using the default gnome terminal in ubuntu) You should get yourself a real terminal. Even Ubuntu hides

[GENERAL] pasting into psql garbles text

2009-06-27 Thread Merlin Moncure
I've noticed over a wide variety of operating systems that when you paste from an application into psql through a terminal (currently using the default gnome terminal in ubuntu), large pastes tend to get garbled with some of the input getting truncated. While working on functions, this is annoying