Re: libpq: do I need PQendcopy after PQgetCopyData?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nathaniel Trellice <naptrel(at)yahoo(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: libpq: do I need PQendcopy after PQgetCopyData?
Date: 2009-12-22 17:19:39
Message-ID: 20198.1261502379@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Nathaniel Trellice <naptrel(at)yahoo(dot)co(dot)uk> writes:
> So, even though the manual states that it's obsolete, do I need to issue a call to 'PQendcopy' to tell the server that the copy is complete?

No, but did you do a PQgetResult? See the description of PQgetCopyData.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jacob Shucart 2009-12-22 17:26:56 Error starting backup
Previous Message Tom Lane 2009-12-22 17:15:55 Re: Extended Query, flush or sync ?