pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Removing support for COPY FROM STDIN in protocol version 2
Date: Wed, 3 Feb 2021 18:47:05 +0200
Message-ID: <f69a7e6b-66f6-cbab-a414-ecc5c2127208@iki.fi> (raw)
In-Reply-To: <3921698.1612369777@sss.pgh.pa.us>
References: <20210203160958.GA2341@alvherre.pgsql>
	<3921698.1612369777@sss.pgh.pa.us>

On 03/02/2021 18:29, Tom Lane wrote:
> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
>> On 2021-Feb-03, Tom Lane wrote:
>>> I have a vague recollection that JDBC users still like to use
>>> protocol 2 for some reason --- is that out of date?
> 
>> [ yes, since 2016 ]
> 
> Then let's kill it dead, server and libpq both.

Ok, works for me. I'll prepare a larger patch to do that.

Since we're on a removal-spree, it'd also be nice to get rid of the 
"fast-path" function call interface, PQfn(). However, libpq is using it 
internally in the lo_*() functions, so if we remove it from the server, 
lo_*() will stop working with old libpq versions. It would be good to 
change those functions now to use PQexecParams() instead, so that we 
could remove the fast-path server support in the future.

- Heikki





view thread (22+ messages)  latest in thread

Message-ID: <f69a7e6b-66f6-cbab-a414-ecc5c2127208@iki.fi>
Permalink:  ../f69a7e6b-66f6-cbab-a414-ecc5c2127208@iki.fi/
Also on:    postgresql.org/message-id/f69a7e6b-66f6-cbab-a414-ecc5c2127208@iki.fi

 · 

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: hlinnaka@iki.fi, tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org
  Subject: Re: Removing support for COPY FROM STDIN in protocol version 2
  In-Reply-To: <f69a7e6b-66f6-cbab-a414-ecc5c2127208@iki.fi>

* 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