pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <hlinnaka@iki.fi>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Removing support for COPY FROM STDIN in protocol version 2
Date: Wed, 03 Feb 2021 11:00:52 -0500
Message-ID: <3908079.1612368052@sss.pgh.pa.us> (raw)
In-Reply-To: <9ec25819-0a8a-d51a-17dc-4150bb3cca3b@iki.fi>
References: <9ec25819-0a8a-d51a-17dc-4150bb3cca3b@iki.fi>

Heikki Linnakangas <hlinnaka@iki.fi> writes:
> I propose that we remove server support for COPY FROM STDIN with 
> protocol version 2, per attached patch. Even if we could still support 
> it, it would be a very rarely used and tested codepath, prone to bugs. 
> Perhaps we could remove support for the old protocol altogether, but I'm 
> not proposing that we go that far just yet.

I'm not really on board with half-baked removal of protocol 2.
If we're going to kill it we should just kill it altogether.
(The argument that it's untested surely applies to the rest
of the P2 code as well.)

I have a vague recollection that JDBC users still like to use
protocol 2 for some reason --- is that out of date?

			regards, tom lane





view thread (22+ messages)  latest in thread

Message-ID: <3908079.1612368052@sss.pgh.pa.us>
Permalink:  ../3908079.1612368052@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3908079.1612368052@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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, hlinnaka@iki.fi
  Subject: Re: Removing support for COPY FROM STDIN in protocol version 2
  In-Reply-To: <3908079.1612368052@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