Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 939CE633E0C for ; Fri, 23 Jul 2010 10:50:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 49981-01; Fri, 23 Jul 2010 13:50:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 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 53739632B78; Fri, 23 Jul 2010 10:50:29 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id 3B43328455; Fri, 23 Jul 2010 09:50:27 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=message-id :date:from:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; s=sel1; bh=QfQOiNg/0qgj K5SQAvfPIww7kH0=; b=JIg5y9FVxEL6iAiJ5nY4J/b606Uwk1pulrVKp/Z8oMYY 9hwtrxRK6+oNiiEfg8dBDZ3JBI/sk4MnoKmP+qPdAkkZmj7s9Ge9mlSzezs0xPBt apRZ+p2DGv3WTS4itX6tZ6O6HX8vPHMrFkJ6BkGtOgcDkJ/wGdk7bWXeVDTgnkI= Received: from [192.168.7.181] (cpe-24-24-224-57.socal.res.rr.com [24.24.224.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail63.csoft.net (Postfix) with ESMTPSA id 0DA6E28442; Fri, 23 Jul 2010 09:50:25 -0400 (EDT) Message-ID: <4C499E26.4060307@ejurka.com> Date: Fri, 23 Jul 2010 06:50:30 -0700 From: Kris Jurka User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: Tom Lane CC: pgsql-hackers@postgresql.org, Matthew Wakeling , Kevin Grittner , Maciek Sakrejda , Samuel Gendler , pgsql-jdbc@postgresql.org Subject: Re: [HACKERS] Trouble with COPY IN References: <4C4562C50200002500033951@gw.wicourts.gov> <9143.1279892435@sss.pgh.pa.us> In-Reply-To: <9143.1279892435@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-10 required=5 tests=BAYES_40=-0.001 X-Spam-Level: X-Archive-Number: 201007/93 X-Sequence-Number: 20758 On 7/23/2010 6:40 AM, Tom Lane wrote: > 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. > All this does is make binary mode match text mode. Are you planning on changing text mode to match binary mode instead? Currently text mode parsing ends at the data end marker (\.) and throws away any further data which may or may not be ill formatted. For example there's no complaint about copying the following data file into a single column integer table even though there is bogus data after the file end marker 3 4 \. asdf aff 5 qq Kris Jurka