size limits on insert/copy/etc

Started by John Browningalmost 27 years ago2 messagesgeneral
Jump to latest
#1John Browning
jb@poplar.com

I'm trying to add large text items to a table (field declared as type
text). PQSendQuery can't take more than 8192 bytes.That's OK. But COPY
also complains that tuples of 29896 bytes are too big (trying to copy
from a file). So how do I get big text fields into a table? Do I have to
make them large objects? (And, if so, in what sense is the text field of
"unlimited size"?) Or am I just missing something simple?

Many thanks in advance for any advice...

bests

--

John Browning // 71 Richmond Ave // London N1 0LX
t 44 171 700 1230 // f 44 171 700 5255

#2Chris Bitmead
chris.bitmead@bigfoot.com
In reply to: John Browning (#1)
Re: [GENERAL] size limits on insert/copy/etc

Unfortunately tuples cannot be bigger than 8k. Many of us I think look
forward to the day when this restriction doesn't apply (it is on the
to-do list), but at this point in time 8k is the limit.

Large objects will work, but they have other problems that make them
fairly impractical.

John Browning wrote:

Show quoted text

I'm trying to add large text items to a table (field declared as type
text). PQSendQuery can't take more than 8192 bytes.That's OK. But COPY
also complains that tuples of 29896 bytes are too big (trying to copy
from a file). So how do I get big text fields into a table? Do I have to
make them large objects? (And, if so, in what sense is the text field of
"unlimited size"?) Or am I just missing something simple?

Many thanks in advance for any advice...

bests

--

John Browning // 71 Richmond Ave // London N1 0LX
t 44 171 700 1230 // f 44 171 700 5255