From: Kris Jurka <books@ejurka.com>
To: Maciek Sakrejda <msakrejda@truviso.com>
Cc: Matthew Wakeling <matthew@flymine.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Trouble with COPY IN
Date: Fri, 16 Jul 2010 13:41:13 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1007161336490.32040@leary.csoft.net> (raw)
In-Reply-To: <AANLkTim0dNU58e_Zg3OGTlylkYVAA9rtyhnb-xfzyLTl@mail.gmail.com>
References: <alpine.DEB.2.00.1007161753160.8895@aragorn.flymine.org>
<AANLkTim0dNU58e_Zg3OGTlylkYVAA9rtyhnb-xfzyLTl@mail.gmail.com>
On Fri, 16 Jul 2010, Maciek Sakrejda wrote:
> Could it be that COPY is erroring out, and then the driver tries to
> end it anyway, causing the error?
That seems likely. What's probably necessary to reproduce this is a
failure at the end of the data stream. An early error will be received
and processed normally, but an error at the end will be buffered and the
driver will think everything succeeded and try to end the copy not knowing
that it has already failed. I think we'd need to call the blocking
version of processCopyResults prior to endCopy to avoid this misleading
error.
Kris Jurka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, msakrejda@truviso.com, matthew@flymine.org
Subject: Re: Trouble with COPY IN
In-Reply-To: <alpine.BSO.2.00.1007161336490.32040@leary.csoft.net>
References: <alpine.DEB.2.00.1007161753160.8895@aragorn.flymine.org> <AANLkTim0dNU58e_Zg3OGTlylkYVAA9rtyhnb-xfzyLTl@mail.gmail.com> <alpine.BSO.2.00.1007161336490.32040@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox