Re: PQputCopyData dont signal error - Mailing list pgsql-hackers

From David Johnston
Subject Re: PQputCopyData dont signal error
Date
Msg-id 1396299127007-5798115.post@n5.nabble.com
Whole thread Raw
In response to Re: PQputCopyData dont signal error  (steve k <steven.c.kohler@nasa.gov>)
List pgsql-hackers
steve k wrote
> Sorry I can't provide more information but I do appreciate your time.  If
> you can't get any further with it I understand and don't expect another
> reply.  

For the benefit of others I'm reading this as basically you've found a
better way to do this so you are no longer concerned with correcting the
broken (incomplete) code you have provided.

It should be as simple as adding one more if statement between the copy-end
check and the overall failure check to see whether the copy command itself
failed in addition to the existing checks to see if sending the data or
ending the data send failed.

I will not pretend to write c code but the general logic and requirements
seems quite clear from the documentation I have read/shown.

David J.




--
View this message in context:
http://postgresql.1045698.n5.nabble.com/PQputCopyData-dont-signal-error-tp4302340p5798115.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.



pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: Patch to add support of "IF NOT EXISTS" to others "CREATE" statements
Next
From: Robert Haas
Date:
Subject: Re: Archive recovery won't be completed on some situation.