Rework bulk-copy API to allow several COPY within the same transaction.