Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 68767632A32 for ; Fri, 16 Jul 2010 15:06:31 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 72023-02 for ; Fri, 16 Jul 2010 18:06:23 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 1BDF6632874 for ; Fri, 16 Jul 2010 15:06:23 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id A952D28412; Fri, 16 Jul 2010 14:06:22 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=iRPXp7G1+ohzHLGNo3CqRxNQ+pw=; b=YGY9U1 cHsgOAE19YYXs+hf6bEVWwaSCdNAcpdfy4/J8yCEvl/vPblPll+jm6V1JSpmIm34 MB/P9LEdhOxow8Sl658zQcLDz06AkHwBC6fidhl24jK+O1VQoNJ81ffR4svZW1WM UDD8dUNg6zlyUUwNfzzpVqARpXkMbmZhF9/XE= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 992BA28410; Fri, 16 Jul 2010 14:06:22 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 39228A200; Fri, 16 Jul 2010 14:06:22 -0400 (EDT) Date: Fri, 16 Jul 2010 14:06:21 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Maciek Sakrejda cc: Matthew Wakeling , pgsql-jdbc@postgresql.org Subject: Re: Trouble with COPY IN In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/44 X-Sequence-Number: 20709 On Fri, 16 Jul 2010, Kris Jurka wrote: > 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. > Actually with a little more thinking, what I said was completely bogus. 1) Blocking won't fix anything because in the success path, there's no message to receive, so there's nothing to process. 2) The protocol docs say that after an error, CopyData, CopyDone, and CopyFail messages are ignored, so they wouldn't be causing this error. So some more thought is needed here... Kris Jurka