Tom Lane wrote:No, but did you do a PQgetResult? See the description of PQgetCopyData.
Oops! Thanks Tom. Even after many re-reads, I missed that final paragraph in the manual, and have wasted ages on this.Nathaniel