pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kris Jurka <books@ejurka.com>
Cc: James William Pye <lists@jwp.name>
Cc: pgsql-hackers@postgresql.org, Matthew Wakeling <matthew@flymine.org>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: Maciek Sakrejda <msakrejda@truviso.com>
Cc: Samuel Gendler <sgendler@ideasculptor.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [JDBC] Trouble with COPY IN
Date: Sat, 18 Sep 2010 16:15:45 -0400
Message-ID: <18984.1284840945@sss.pgh.pa.us> (raw)
In-Reply-To: <alpine.BSO.2.00.1008091447440.25873@leary.csoft.net>
References: <alpine.DEB.2.00.1007161753160.8895@aragorn.flymine.org>
	<alpine.DEB.2.00.1007201229110.8895@aragorn.flymine.org>
	<alpine.DEB.2.00.1007201422270.8895@aragorn.flymine.org>
	<4C4562C50200002500033951@gw.wicourts.gov>
	<alpine.DEB.2.00.1007201452360.8895@aragorn.flymine.org>
	<alpine.DEB.2.00.1007201507500.8895@aragorn.flymine.org>
	<alpine.BSO.2.00.1007201455220.5084@leary.csoft.net>
	<alpine.BSO.2.00.1007221723230.16703@leary.csoft.net>
	<9143.1279892435@sss.pgh.pa.us>
	<4C499E26.4060307@ejurka.com>
	<9653.1279894296@sss.pgh.pa.us>
	<7E743A09-D012-4BBB-9B87-24CA1DF51015@jwp.name>
	<alpine.BSO.2.00.1007251041530.16933@leary.csof t.net>
	<41218459-EDA4-4005-B791-2392991150AC@jwp.name>
	<alpine.BSO.2.00.1007281249290.9018@leary.csoft.net>
	<BDD3690F-8290-4FC4-B6DE-1ED6E5558D83@jwp.name>
	<alpine.BSO.2.00.100 8061927300.17860@leary.csoft.net>
	<0448ABED-5F22-4EE5-95F5-A7917B25EFB6@jwp.name>
	<alpine.BSO.2.00.1008070305470.12532@leary.csoft.net>
	<alpine.BSO.2.00.1008091447440.25873@le! ary.csoft.net>

Kris Jurka <books@ejurka.com> writes:
>> On Fri, 6 Aug 2010, James William Pye wrote:
>>> I think there's a snag in the patch:

> Oh, duh.  It's a server side copy not going through the client at all. 
> Here's a hopefully final patch.

Applied with a correction: this would've totally broken binary copy in
old-style protocol, because there is no other EOF marker except the -1
in that case.

BTW, it strikes me that we could reduce the backwards-compatibility
impact of this patch if we made it ignore, rather than throw error for,
any extra data after the EOF marker.  I left it as-is since ISTM the
more error checking you can have in a binary data format, the better.
But a case could be made for doing the other thing, especially if
somebody wanted to argue for back-patching this.

			regards, tom lane



view thread (48+ messages)

Message-ID: <18984.1284840945@sss.pgh.pa.us>
Permalink:  ../18984.1284840945@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18984.1284840945@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, books@ejurka.com, lists@jwp.name, matthew@flymine.org, Kevin.Grittner@wicourts.gov, msakrejda@truviso.com, sgendler@ideasculptor.com
  Subject: Re: [JDBC] Trouble with COPY IN
  In-Reply-To: <18984.1284840945@sss.pgh.pa.us>
  References: <alpine.DEB.2.00.1007161753160.8895@aragorn.flymine.org> <alpine.DEB.2.00.1007201229110.8895@aragorn.flymine.org> <alpine.DEB.2.00.1007201422270.8895@aragorn.flymine.org> <4C4562C50200002500033951@gw.wicourts.gov> <alpine.DEB.2.00.1007201452360.8895@aragorn.flymine.org> <alpine.DEB.2.00.1007201507500.8895@aragorn.flymine.org> <alpine.BSO.2.00.1007201455220.5084@leary.csoft.net> <alpine.BSO.2.00.1007221723230.16703@leary.csoft.net> <9143.1279892435@sss.pgh.pa.us> <4C499E26.4060307@ejurka.com> <9653.1279894296@sss.pgh.pa.us> <7E743A09-D012-4BBB-9B87-24CA1DF51015@jwp.name> <41218459-EDA4-4005-B791-2392991150AC@jwp.name> <alpine.BSO.2.00.1007281249290.9018@leary.csoft.net> <BDD3690F-8290-4FC4-B6DE-1ED6E5558D83@jwp.name> <0448ABED-5F22-4EE5-95F5-A7917B25EFB6@jwp.name> <alpine.BSO.2.00.1008070305470.12532@leary.csoft.net> <18984.1284840945@sss.pgh.pa.us>

* 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