Please try Tom's \g test: test=> select factorial(4000) test-> \g /tmp/x test=> \q $ wc -c /tmp/x 20881 /tmp/x Do you see a number greater than 20881, something like 30000?
--------------------------------------------------------------------------- Alvaro Herrera wrote: > Tom Lane wrote: > > Alvaro Herrera <[EMAIL PROTECTED]> writes: > > > So this is a psql bug? > > > > Not here. Do you see it? > > Actually, no. If I cut'n paste the number from psql to > > cat > foo > <shift> <insert> > > then only 4096 chars are copied. (Amusingly, I can't add a newline to > ^D and close the file. I must delete one char to do that.) > > However if I open vim and paste there, the whole 12000+delta chars are > copied. > > So it must be a bug in Bruce's procedure I guess ... > > -- > Alvaro Herrera http://www.CommandPrompt.com/ > PostgreSQL Replication, Consulting, Custom Development, 24x7 support > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings