pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-hackers@postgresql.org
Cc: 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: [HACKERS] Trouble with COPY IN
Date: Fri, 23 Jul 2010 09:23:55 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1007222112070.29831@leary.csoft.net> (raw)
In-Reply-To: <AANLkTincY8oaXCvKL4bmDb3VEOj6oSXY3SHX9BYF=maA@mail.gmail.com>
References: <alpine.DEB.2.00.1007161753160.8895@aragorn.flymine.org>
	<AANLkTim0dNU58e_Zg3OGTlylkYVAA9rtyhnb-xfzyLTl@mail.gmail.com>
	<alpine.DEB.2.00.1007191455550.8895@aragorn.flymine.org>
	<alpine.DEB.2.00.1007191514510.8895@aragorn.flymine.org>
	<AANLkTimCYa3fvWu2-NwcUc_7GibTpFB1RjNC09IVk8IS@mail.gmail.com>
	<alpine.DEB.2.00.1007201114080.8895@aragorn.flymine.org>
	<alpine.DEB.2.00.1007201128560.8895@aragorn.flymine.org>
	<AANLkTinVNt56ZuxRf0KNgBR-kJPN1NkTgDkHY2DXIPQr@mail.gmail.com>
	<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>
	<AANLkTincY8oaXCvKL4bmDb3VEOj6oSXY3SHX9BYF=maA@mail.gmail.com>



On Thu, 22 Jul 2010, Robert Haas wrote:

> On Thu, Jul 22, 2010 at 5:34 PM, Kris Jurka <books@ejurka.com> wrote:
>>
>> 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 guess the obvious question is whether we shouldn't instead change
> the docs to match the behavior.  I suspect there's almost no chance
> we'd consider back-patching a change of this type, since it is a clear
> behavior change.  And even if we did, there would still be people
> running servers with the old behavior with which JDBC and other
> drivers would have to cope.  Having two different behaviors might be
> worse than the status quo.
>

It is a clear behavior change, but that's what bug fixes are.  I would 
advocate back-patching this because I doubt many people would be affected 
by this change and I think it would be awkward trying to document how 
things work differently in binary mode when sending a file end marker than 
in text mode or without a file end marker.  If this was fixed server side 
and backpatched, I would not modify the JDBC driver to work with older 
server versions.

The copy documentation is clear that you must call PQputCopyEnd or 
equivalent to end the copy sequence, so this would only affect people who 
are not doing that and using binary copy mode.  I doubt many people are 
using binary copy at all because of the additional difficulty in 
generating binary format data and the potential for portability problems.

Kris Jurka



view thread (48+ messages)  latest in thread

Message-ID: <alpine.BSO.2.00.1007222112070.29831@leary.csoft.net>
Permalink:  ../alpine.BSO.2.00.1007222112070.29831@leary.csoft.net/
Also on:    postgresql.org/message-id/alpine.BSO.2.00.1007222112070.29831@leary.csoft.net

 · 

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: books@ejurka.com, robertmhaas@gmail.com, pgsql-hackers@postgresql.org, matthew@flymine.org, Kevin.Grittner@wicourts.gov, msakrejda@truviso.com, sgendler@ideasculptor.com
  Subject: Re: [HACKERS] Trouble with COPY IN
  In-Reply-To: <alpine.BSO.2.00.1007222112070.29831@leary.csoft.net>
  References: <alpine.DEB.2.00.1007161753160.8895@aragorn.flymine.org> <AANLkTim0dNU58e_Zg3OGTlylkYVAA9rtyhnb-xfzyLTl@mail.gmail.com> <alpine.DEB.2.00.1007191455550.8895@aragorn.flymine.org> <alpine.DEB.2.00.1007191514510.8895@aragorn.flymine.org> <AANLkTimCYa3fvWu2-NwcUc_7GibTpFB1RjNC09IVk8IS@mail.gmail.com> <alpine.DEB.2.00.1007201114080.8895@aragorn.flymine.org> <alpine.DEB.2.00.1007201128560.8895@aragorn.flymine.org> <AANLkTinVNt56ZuxRf0KNgBR-kJPN1NkTgDkHY2DXIPQr@mail.gmail.com> <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> <AANLkTincY8oaXCvKL4bmDb3VEOj6oSXY3SHX9BYF=maA@mail.gmail.com> <alpine.BSO.2.00.1007222112070.29831@leary.csoft.net>

* 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