Kyle Bateman <kyle@actarg.com> writes:
> As though it had lost track of the begin statement. It seems to fail
> just as the total number of
> characters in the query string passes 16K in size. I'm using the pgtcl
> interface so the problem could
> possibly be there as well.
It sounds like you are sending the entire thing in a single query string
and running into the limited size of the query input buffer. Execute
the commands one at a time, or at least fewer at a time...
regards, tom lane