Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 4B04A632505 for ; Fri, 16 Jul 2010 14:41:23 -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 04781-07 for ; Fri, 16 Jul 2010 17:41:15 +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 001BE632411 for ; Fri, 16 Jul 2010 14:41:15 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 1A1E52842E; Fri, 16 Jul 2010 13:41:14 -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=m0OlC28mTqbCCmEMfQzM/+fISG4=; b=CSMnEP Sv2e4cUpQltONcvg8kHb8Kj2tdQUT7K/VBPYBthJQ2ao5DH8lPRMcaJT7Tufutw0 E9GpKn1jAxeUMV9dp395Su7o17gwXtwRPvoLlLFRDUVIEfe6R2Abd0i2+TPVEydm twWxgl49rBz3ybT8ZhtM0puQdfnMgZVSYNiN4= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 15C2128429; Fri, 16 Jul 2010 13:41:14 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id C0649A200; Fri, 16 Jul 2010 13:41:13 -0400 (EDT) Date: Fri, 16 Jul 2010 13:41:13 -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; charset=US-ASCII; format=flowed 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/43 X-Sequence-Number: 20708 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