Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7LJA-0006x0-6Y for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Feb 2021 16:47:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l7LJ9-0001Xr-3E for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Feb 2021 16:47:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7LJ8-0001Xk-Oa for pgsql-hackers@lists.postgresql.org; Wed, 03 Feb 2021 16:47:10 +0000 Received: from lahtoruutu.iki.fi ([185.185.170.37]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7LJ6-0005oQ-Q8 for pgsql-hackers@postgresql.org; Wed, 03 Feb 2021 16:47:10 +0000 Received: from [192.168.1.113] (dsl-hkibng22-54faa4-119.dhcp.inet.fi [84.250.164.119]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 2258C1B000E5; Wed, 3 Feb 2021 18:47:06 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1612370826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bDip5TTf1VwTEsc6QANEe5m7CNEsWhvOiFA0wCB6RfU=; b=YCZYUAVi8Ijz0lX5/guT5qCKc033qmQUlrqANpGptMrLuJKePjz/ViJI2BAGaMRN/dr/3T rXVaFM54oGhAYx0XAj5lryrDEB/SVhm+QfEvFWWq3DhAgfAcymI/+qBDYDRCS1fLGCcGqu apU8h6L4+bQxhWAYbGLAQeJtFYfFvFWzRtbw3dLeloobJsWhwOHyB2UyR5SIO/w8xXei7o MrByZU28ZVV2CQH2dMcZgIdSBE9E72dmEnvUZuVvjX0kytO9v5GtyFfNdXYDGlRnShFaet ihCrh7JZbSWGoifAwHAsCoC5OEQJInyaxT6ndbePF2I0ZRWi5b5HC57Zx3M2/A== Subject: Re: Removing support for COPY FROM STDIN in protocol version 2 To: Tom Lane , Alvaro Herrera Cc: pgsql-hackers References: <20210203160958.GA2341@alvherre.pgsql> <3921698.1612369777@sss.pgh.pa.us> From: Heikki Linnakangas Message-ID: Date: Wed, 3 Feb 2021 18:47:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: <3921698.1612369777@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1612370826; a=rsa-sha256; cv=none; b=b1ItHUQBqSdxOGMnndgI5uuvixl/UwUodE6sHAQWMTfUbOQcY56O2lsGkwsdL3moYJMH3M +VswDX7PMTvSpX+fjG39vzj6EelOqBzXbQl2BWEI9eqSAxOJqEMHYcfyzPpBWIoXtKI9Op P2QEWQ+tNTk0y50soJcU1lnANyHJzgVCpezSPPGT8tR6+lF3+mnHVBmX589+9p5dgCyR0l m4iYhg6CyG/el7jS4S2wPTriJ0WLjubO/2/PDpHgo9VYke+SgvHlMf5QSwYLbexILLjE1F SGPH8NMr6s7h2EeJYsovMI4x4ahKvqbPKgwKd4x2/jM3UVmzC8NbHu57J0IH0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1612370826; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bDip5TTf1VwTEsc6QANEe5m7CNEsWhvOiFA0wCB6RfU=; b=GMQQcw+3EcffEPoa3LPYTRbc/1CGfq4W2q73e0Qj3Z+bjsm5TSiEZ7jNv4mzugifTMbHvL 2OUAc4AUe9n+bCTzNjRuSyF4fE4l80JFHLJ/J6HanEsovw67vTmRvgyFUlYB8SyTlMrDQh nZ7pe6slH6E0+ZVinbdrzVlGomhouYOJx0SPMfEIy+BVjqnZua21uP/nu49DT+g/hNThxj Q7bqMwj6hvkW5pJ4fscv0WBwkIlLo9rrNwSNUa3H+Wss/EhEricwM5df7uM7U5fJVNql/Y rpN0UAbigXEHCaD9n5rLZaQel7M7q1D+XaXhL5/22Yl7qeMu4b/t53H/4ZN58g== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 03/02/2021 18:29, Tom Lane wrote: > Alvaro Herrera 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