Thread: PQexec() -- query is too long. Maximum length is 8191

PQexec() -- query is too long. Maximum length is 8191

From
Alan Schunemann
Date:
Hello,

I was attempting to import a large table using the psql -e database < db.out.
(where db.out is the result of a pg_dump that has been changed to import a new
data set) However, after reading approx. 191 lines, the load core dumped with
the error:

PQexec() -- query is too long.  Maximum length is 8191

Any ideas?

Thanks,
Alan