Re: get error message of COPY command after using PQputCopyEnd

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: bronstein87 <bumatov(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: get error message of COPY command after using PQputCopyEnd
Date: 2017-01-24 22:30:48
Message-ID: 20832.1485297048@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

bronstein87 <bumatov(at)gmail(dot)com> writes:
> I'm trying to get an error after sending wrong buffer by PQputCopyData.
> ...
> so, pqgetresult do not return any error. what im doing wrong?

Hm, are you sure the data you're sending is actually wrong?
I don't see anything in your code extract that looks wrong.

You might try looking in the server log to see what it thinks
is happening.

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message padmini 2017-01-24 23:35:24 Postgres authentication to multiple application servers
Previous Message bronstein87 2017-01-24 21:40:47 get error message of COPY command after using PQputCopyEnd