Brent Verner <brent@rcfile.org> writes:
> I must retract this assertion. As posted, this patch dies on the
> second line of a COPY file... argh. What did I break?
First guess is that you allocated some data structure in the per-tuple
context that needs to be in the per-query context (ie, needs to live
throughout the copy).
regards, tom lane