The following bug has been logged on the website:
Bug reference: 7726
Logged by: Xie Jilei
Email address: xjl(at)99jsj(dot)com
PostgreSQL version: 9.1.0
Operating system: Debian/testing
Description:
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.