Re: BUG #7726: Can't paste sqls size>4096 to psql console.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: xjl(at)99jsj(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7726: Can't paste sqls size>4096 to psql console.
Date: 2012-12-03 18:14:48
Message-ID: 17161.1354558488@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

xjl(at)99jsj(dot)com writes:
> 1. Copy 4095 chars of sql statements to clipboard.
> 2. Open psql in gnome-terminal, and paste the script from the clipboard
> 3. No problem.

> 4. Copy 5005 chars of sql statements to clipboard
> 5. Paste to psql.
> 6. Only appx 4096 chars are pasted, but it's not the head part. Something
> just wrong. Some statements are broken.

This is going to be the fault of your terminal program, not psql.
psql doesn't even know that you're pasting something rather than just
typing it manually.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2012-12-04 02:17:00 Re: BUG #7722: extract(epoch from age(...)) appears to be broken
Previous Message Cédric Villemain 2012-12-03 16:50:15 Re: BUG #7726: Can't paste sqls size>4096 to psql console.