Subject: | Fail to clear result after COPY |
After a COPY (pg_getcopydata or pg_putcopydata), the result queue is not
properly cleared, leading to any subsequent async queries failing. Normal
queries work, but only through a quirk of libpq; that's why this has not
been detected until now. Added a test for this in t/07copy.t