Well, I fixed my problem. I'm sure everyone already knows this but if you
use the -d flag to pg_dump (Dump data as proper insert strings) then it
doesn't use the COPY command to insert data. Hence no HUGE strings to exceed
the buffer. Using this flag helped.
--Rainer