Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 1E4BA6332C3 for ; Fri, 23 Jul 2010 10:40:52 -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 73945-01 for ; Fri, 23 Jul 2010 13:40:43 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id E6B706327CB for ; Fri, 23 Jul 2010 10:40:44 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o6NDeZt7009144; Fri, 23 Jul 2010 09:40:35 -0400 (EDT) To: Kris Jurka cc: pgsql-hackers@postgresql.org, Matthew Wakeling , Kevin Grittner , Maciek Sakrejda , Samuel Gendler , pgsql-jdbc@postgresql.org Subject: Re: [HACKERS] Trouble with COPY IN In-reply-to: References: <4C4562C50200002500033951@gw.wicourts.gov> Comments: In-reply-to Kris Jurka message dated "Thu, 22 Jul 2010 17:34:08 -0400" Date: Fri, 23 Jul 2010 09:40:35 -0400 Message-ID: <9143.1279892435@sss.pgh.pa.us> From: Tom Lane 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/91 X-Sequence-Number: 20756 Kris Jurka writes: > Attached is a patch to make the server continue to consume protocol data > until instructed to stop by the client in the same way as copying text > data to the server currently works. I believe this is a misunderstanding of the protocol spec. The spec is (intended to say that) we'll continue to accept data after reporting an error, not that we will silently swallow an incorrect data stream and not complain about it. Which is what this patch will do. regards, tom lane