pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Remove support for SSL compression
11+ messages / 3 participants
[nested] [flat]
Commits from this thread:
2021-03-10 0ba71107ef Revert changes for SSL compression in libpq
2021-03-09 096bbf7c93 Switch back sslcompression to be a normal input field in libpq
* pgsql: Remove support for SSL compression
@ 2021-03-09 02:18 Michael Paquier <michael@paquier.xyz>
2021-03-09 03:26 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 11+ messages in thread
From: Michael Paquier @ 2021-03-09 02:18 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Remove support for SSL compression
PostgreSQL disabled compression as of e3bdb2d and the documentation
recommends against using it since. Additionally, SSL compression has
been disabled in OpenSSL since version 1.1.0, and was disabled in many
distributions long before that. The most recent TLS version, TLSv1.3,
disallows compression at the protocol level.
This commit removes the feature itself, removing support for the libpq
parameter sslcompression (parameter still listed for compatibility
reasons with existing connection strings, just ignored), and removes
the equivalent field in pg_stat_ssl and de facto PgBackendSSLStatus.
Note that, on top of removing the ability to activate compression by
configuration, compression is actively disabled in both frontend and
backend to avoid overrides from local configurations.
A TAP test is added for deprecated SSL parameters to check after
backwards compatibility.
Bump catalog version.
Author: Daniel Gustafsson
Reviewed-by: Peter Eisentraut, Magnus Hagander, Michael Paquier
Discussion: https://postgr.es/m/7E384D48-11C5-441B-9EC3-F7DB1F8518F6@yesql.se
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/f9264d1524baa19e4a0528f033681ef16f61b137
Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out | 3 +--
contrib/postgres_fdw/sql/postgres_fdw.sql | 1 -
doc/src/sgml/libpq.sgml | 33 ++---------------------
doc/src/sgml/monitoring.sgml | 10 -------
src/backend/catalog/system_views.sql | 1 -
src/backend/libpq/be-secure-openssl.c | 12 +++------
src/backend/postmaster/pgstat.c | 1 -
src/backend/utils/adt/pgstatfuncs.c | 36 ++++++++++++--------------
src/backend/utils/init/postinit.c | 5 ++--
src/bin/psql/command.c | 7 ++---
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 6 ++---
src/include/libpq/libpq-be.h | 1 -
src/include/pgstat.h | 1 -
src/interfaces/libpq/fe-connect.c | 11 ++++----
src/interfaces/libpq/fe-secure-openssl.c | 15 +++++------
src/interfaces/libpq/libpq-int.h | 1 -
src/test/regress/expected/rules.out | 9 +++----
src/test/ssl/t/001_ssltests.pl | 17 ++++++++----
19 files changed, 60 insertions(+), 112 deletions(-)
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: pgsql: Remove support for SSL compression
2021-03-09 02:18 pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
@ 2021-03-09 03:26 ` Michael Paquier <michael@paquier.xyz>
2021-03-09 11:19 ` Re: pgsql: Remove support for SSL compression Daniel Gustafsson <daniel@yesql.se>
2021-03-09 11:19 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
0 siblings, 2 replies; 11+ messages in thread
From: Michael Paquier @ 2021-03-09 03:26 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org; +Cc: Daniel Gustafsson <daniel@yesql.se>
On Tue, Mar 09, 2021 at 02:18:52AM +0000, Michael Paquier wrote:
> Remove support for SSL compression
>
> PostgreSQL disabled compression as of e3bdb2d and the documentation
> recommends against using it since. Additionally, SSL compression has
> been disabled in OpenSSL since version 1.1.0, and was disabled in many
> distributions long before that. The most recent TLS version, TLSv1.3,
> disallows compression at the protocol level.
(Adding Daniel in CC)
So, this is breaking a test case in crake where an upgrade from 9.3 is
done with a FDW server using this option that gets restored:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=crake&dt=2021-03-09%2002%3A32%3A29
pg_restore: while PROCESSING TOC:
pg_restore: from TOC entry 1541; 1417 55431 SERVER testserver1
buildfarm
pg_restore: error: could not execute query: ERROR: invalid option
"sslcompression"
It looks like it is not that much a good idea to define it as a debug
option after all. So I guess that the attached would fix the failure,
where FDW servers can still pass down the parameter at will for
backward-compatibility, and where libpq keeps ignoring its value. Any
thoughts?
--
Michael
Attachments:
sslcompression-fix.patch (text/x-diff, 2.7K) download
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index fed06bb038..a294d293eb 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -298,7 +298,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
* compatibility.
*/
{"sslcompression", NULL, NULL, NULL,
- "SSL-Compression", "D", 1, -1},
+ "SSL-Compression", "", 1, -1},
{"sslcert", "PGSSLCERT", NULL, NULL,
"SSL-Client-Cert", "", 64,
diff --git a/contrib/postgres_fdw/expected/postgres_fdw.out b/contrib/postgres_fdw/expected/postgres_fdw.out
index c2565dfc70..f17f3b6c29 100644
--- a/contrib/postgres_fdw/expected/postgres_fdw.out
+++ b/contrib/postgres_fdw/expected/postgres_fdw.out
@@ -167,6 +167,7 @@ ALTER SERVER testserver1 OPTIONS (
sslcert 'value',
sslkey 'value',
sslrootcert 'value',
+ sslcompression 'value',
sslcrl 'value',
--requirepeer 'value',
krbsrvname 'value',
@@ -8945,7 +8946,7 @@ DO $d$
END;
$d$;
ERROR: invalid option "password"
-HINT: Valid options in this context are: service, passfile, channel_binding, connect_timeout, dbname, host, hostaddr, port, options, application_name, keepalives, keepalives_idle, keepalives_interval, keepalives_count, tcp_user_timeout, sslmode, sslcert, sslkey, sslrootcert, sslcrl, sslcrldir, requirepeer, ssl_min_protocol_version, ssl_max_protocol_version, gssencmode, krbsrvname, gsslib, target_session_attrs, use_remote_estimate, fdw_startup_cost, fdw_tuple_cost, extensions, updatable, fetch_size, batch_size
+HINT: Valid options in this context are: service, passfile, channel_binding, connect_timeout, dbname, host, hostaddr, port, options, application_name, keepalives, keepalives_idle, keepalives_interval, keepalives_count, tcp_user_timeout, sslmode, sslcompression, sslcert, sslkey, sslrootcert, sslcrl, sslcrldir, requirepeer, ssl_min_protocol_version, ssl_max_protocol_version, gssencmode, krbsrvname, gsslib, target_session_attrs, use_remote_estimate, fdw_startup_cost, fdw_tuple_cost, extensions, updatable, fetch_size, batch_size
CONTEXT: SQL statement "ALTER SERVER loopback_nopw OPTIONS (ADD password 'dummypw')"
PL/pgSQL function inline_code_block line 3 at EXECUTE
-- If we add a password for our user mapping instead, we should get a different
diff --git a/contrib/postgres_fdw/sql/postgres_fdw.sql b/contrib/postgres_fdw/sql/postgres_fdw.sql
index a143a70406..be5618f759 100644
--- a/contrib/postgres_fdw/sql/postgres_fdw.sql
+++ b/contrib/postgres_fdw/sql/postgres_fdw.sql
@@ -181,6 +181,7 @@ ALTER SERVER testserver1 OPTIONS (
sslcert 'value',
sslkey 'value',
sslrootcert 'value',
+ sslcompression 'value',
sslcrl 'value',
--requirepeer 'value',
krbsrvname 'value',
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: pgsql: Remove support for SSL compression
2021-03-09 02:18 pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 03:26 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
@ 2021-03-09 11:19 ` Daniel Gustafsson <daniel@yesql.se>
2021-03-09 12:33 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
1 sibling, 1 reply; 11+ messages in thread
From: Daniel Gustafsson @ 2021-03-09 11:19 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-committers@lists.postgresql.org
> On 9 Mar 2021, at 04:26, Michael Paquier <michael@paquier.xyz> wrote:
> It looks like it is not that much a good idea to define it as a debug
> option after all. So I guess that the attached would fix the failure,
> where FDW servers can still pass down the parameter at will for
> backward-compatibility, and where libpq keeps ignoring its value. Any
> thoughts?
While not pretty, I think that might be the least invasive option right now.
--
Daniel Gustafsson https://vmware.com/
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: pgsql: Remove support for SSL compression
2021-03-09 02:18 pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 03:26 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 11:19 ` Re: pgsql: Remove support for SSL compression Daniel Gustafsson <daniel@yesql.se>
@ 2021-03-09 12:33 ` Michael Paquier <michael@paquier.xyz>
0 siblings, 0 replies; 11+ messages in thread
From: Michael Paquier @ 2021-03-09 12:33 UTC (permalink / raw)
To: Daniel Gustafsson <daniel@yesql.se>; +Cc: pgsql-committers@lists.postgresql.org
On Tue, Mar 09, 2021 at 12:19:41PM +0100, Daniel Gustafsson wrote:
> While not pretty, I think that might be the least invasive option right now.
crake has turned back to green just now. Let's discuss that a bit
more, even if it does not feel like an issue we absolutely have to
address in this release cycle.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: pgsql: Remove support for SSL compression
2021-03-09 02:18 pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 03:26 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
@ 2021-03-09 11:19 ` Michael Paquier <michael@paquier.xyz>
2021-03-09 15:11 ` Re: pgsql: Remove support for SSL compression Daniel Gustafsson <daniel@yesql.se>
1 sibling, 1 reply; 11+ messages in thread
From: Michael Paquier @ 2021-03-09 11:19 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org; +Cc: Daniel Gustafsson <daniel@yesql.se>
On Tue, Mar 09, 2021 at 12:26:15PM +0900, Michael Paquier wrote:
> It looks like it is not that much a good idea to define it as a debug
> option after all. So I guess that the attached would fix the failure,
> where FDW servers can still pass down the parameter at will for
> backward-compatibility, and where libpq keeps ignoring its value. Any
> thoughts?
So, I have been thinking more about this one, and applied the previous
patch to bring back crake to green. There are a couple of options
that could be considered to make the option non-visible, but nothing
looks really appealing to me:
- Tweak the regression tests on the back-branches to bypass the
failure, but this won't change the potential impact of anybody using
sslcompression in a FDW server, or even dblink.
- Create specific exceptions in postgres_fdw and perhaps dblink.
- Extend libpq with a special status to mark a parameter as
to-be-removed, but that feels like a mix of a normal option and a
debug option.
- Make pg_upgrade complain if such a server is detected (?), bringing
in the ring the first point of this list.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: pgsql: Remove support for SSL compression
2021-03-09 02:18 pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 03:26 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 11:19 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
@ 2021-03-09 15:11 ` Daniel Gustafsson <daniel@yesql.se>
2021-03-09 15:58 ` Re: pgsql: Remove support for SSL compression Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 11+ messages in thread
From: Daniel Gustafsson @ 2021-03-09 15:11 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: pgsql-committers@lists.postgresql.org
> On 9 Mar 2021, at 12:19, Michael Paquier <michael@paquier.xyz> wrote:
>
> On Tue, Mar 09, 2021 at 12:26:15PM +0900, Michael Paquier wrote:
>> It looks like it is not that much a good idea to define it as a debug
>> option after all. So I guess that the attached would fix the failure,
>> where FDW servers can still pass down the parameter at will for
>> backward-compatibility, and where libpq keeps ignoring its value. Any
>> thoughts?
>
> So, I have been thinking more about this one, and applied the previous
> patch to bring back crake to green. There are a couple of options
> that could be considered to make the option non-visible, but nothing
> looks really appealing to me:
> - Tweak the regression tests on the back-branches to bypass the
> failure, but this won't change the potential impact of anybody using
> sslcompression in a FDW server, or even dblink.
> - Create specific exceptions in postgres_fdw and perhaps dblink.
> - Extend libpq with a special status to mark a parameter as
> to-be-removed, but that feels like a mix of a normal option and a
> debug option.
> - Make pg_upgrade complain if such a server is detected (?), bringing
> in the ring the first point of this list.
Having tried a number of different ways to fix this I think the least intrusive
fix is to teach pg_upgrade and dblink about sslcompression, like how've already
taught it about other options. Building any infrastructure to handle
deprecated options and extending the dispchar with a classification for
deprecation for just this one option seems overkill. Deprecating options is
also not something frequently done, so the cost/benefit for something
complicated seems off.
The attached is a version of the simple fix.
--
Daniel Gustafsson https://vmware.com/
Attachments:
v1-0001-Fix-sslcompression-in-postgres_fdw-and-dblink.patch (application/octet-stream, 5.5K) download
From f13390a1922266906e949510b93a979bb1575b0f Mon Sep 17 00:00:00 2001
From: Daniel Gustafsson <daniel@yesql.se>
Date: Tue, 9 Mar 2021 15:40:13 +0100
Subject: [PATCH v1] Fix sslcompression in postgres_fdw and dblink
Commit f9264d1524ba deprecated sslcompression leaving the libpq option
as a debug option to preserve backwards compatibility by silently eating
it when passed in. postgres_fdw and dblink does however skip over debug
options when validating the set of options and would thus fail with an
invalid option. This teaches postgres_fdw and dblink to treat the option
in the same way to avoid upgrades breaking.
This reverts commit 096bbf7c934a4288c9 which was a temporary fix of the
test failure in f9264d1524ba.
Discussion: https://postgr.es/m/7E384D48-11C5-441B-9EC3-F7DB1F8518F6@yesql.se
Discussion: https://postgr.es/m/E1lJRxU-00051U-47@gemulon.postgresql.org
---
contrib/dblink/dblink.c | 13 ++++++++++---
contrib/postgres_fdw/expected/postgres_fdw.out | 3 +--
contrib/postgres_fdw/option.c | 13 ++++++++++---
contrib/postgres_fdw/sql/postgres_fdw.sql | 1 -
src/interfaces/libpq/fe-connect.c | 2 +-
5 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c
index 3a0beaa88e..d589886aa2 100644
--- a/contrib/dblink/dblink.c
+++ b/contrib/dblink/dblink.c
@@ -2035,14 +2035,21 @@ dblink_fdw_validator(PG_FUNCTION_ARGS)
if (!is_valid_dblink_option(options, def->defname, context))
{
+ StringInfoData buf;
+ const PQconninfoOption *opt;
+
+ /*
+ * sslcompression is deprecated and should be silently ignored to
+ * preserve backwards compatibility.
+ */
+ if (strcmp(def->defname, "sslcompression") == 0)
+ continue;
+
/*
* Unknown option, or invalid option for the context specified, so
* complain about it. Provide a hint with list of valid options
* for the context.
*/
- StringInfoData buf;
- const PQconninfoOption *opt;
-
initStringInfo(&buf);
for (opt = options; opt->keyword; opt++)
{
diff --git a/contrib/postgres_fdw/expected/postgres_fdw.out b/contrib/postgres_fdw/expected/postgres_fdw.out
index f17f3b6c29..c2565dfc70 100644
--- a/contrib/postgres_fdw/expected/postgres_fdw.out
+++ b/contrib/postgres_fdw/expected/postgres_fdw.out
@@ -167,7 +167,6 @@ ALTER SERVER testserver1 OPTIONS (
sslcert 'value',
sslkey 'value',
sslrootcert 'value',
- sslcompression 'value',
sslcrl 'value',
--requirepeer 'value',
krbsrvname 'value',
@@ -8946,7 +8945,7 @@ DO $d$
END;
$d$;
ERROR: invalid option "password"
-HINT: Valid options in this context are: service, passfile, channel_binding, connect_timeout, dbname, host, hostaddr, port, options, application_name, keepalives, keepalives_idle, keepalives_interval, keepalives_count, tcp_user_timeout, sslmode, sslcompression, sslcert, sslkey, sslrootcert, sslcrl, sslcrldir, requirepeer, ssl_min_protocol_version, ssl_max_protocol_version, gssencmode, krbsrvname, gsslib, target_session_attrs, use_remote_estimate, fdw_startup_cost, fdw_tuple_cost, extensions, updatable, fetch_size, batch_size
+HINT: Valid options in this context are: service, passfile, channel_binding, connect_timeout, dbname, host, hostaddr, port, options, application_name, keepalives, keepalives_idle, keepalives_interval, keepalives_count, tcp_user_timeout, sslmode, sslcert, sslkey, sslrootcert, sslcrl, sslcrldir, requirepeer, ssl_min_protocol_version, ssl_max_protocol_version, gssencmode, krbsrvname, gsslib, target_session_attrs, use_remote_estimate, fdw_startup_cost, fdw_tuple_cost, extensions, updatable, fetch_size, batch_size
CONTEXT: SQL statement "ALTER SERVER loopback_nopw OPTIONS (ADD password 'dummypw')"
PL/pgSQL function inline_code_block line 3 at EXECUTE
-- If we add a password for our user mapping instead, we should get a different
diff --git a/contrib/postgres_fdw/option.c b/contrib/postgres_fdw/option.c
index 64698c4da3..6fb0288018 100644
--- a/contrib/postgres_fdw/option.c
+++ b/contrib/postgres_fdw/option.c
@@ -81,13 +81,20 @@ postgres_fdw_validator(PG_FUNCTION_ARGS)
if (!is_valid_option(def->defname, catalog))
{
+ PgFdwOption *opt;
+ StringInfoData buf;
+
+ /*
+ * sslcompression is deprecated and should be silently ignored to
+ * preserve backwards compatibility.
+ */
+ if (strcmp(def->defname, "sslcompression") == 0)
+ continue;
+
/*
* Unknown option specified, complain about it. Provide a hint
* with list of valid options for the object.
*/
- PgFdwOption *opt;
- StringInfoData buf;
-
initStringInfo(&buf);
for (opt = postgres_fdw_options; opt->keyword; opt++)
{
diff --git a/contrib/postgres_fdw/sql/postgres_fdw.sql b/contrib/postgres_fdw/sql/postgres_fdw.sql
index be5618f759..a143a70406 100644
--- a/contrib/postgres_fdw/sql/postgres_fdw.sql
+++ b/contrib/postgres_fdw/sql/postgres_fdw.sql
@@ -181,7 +181,6 @@ ALTER SERVER testserver1 OPTIONS (
sslcert 'value',
sslkey 'value',
sslrootcert 'value',
- sslcompression 'value',
sslcrl 'value',
--requirepeer 'value',
krbsrvname 'value',
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index aeb64c5bca..318c45ec19 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -280,7 +280,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
* compatibility.
*/
{"sslcompression", NULL, NULL, NULL,
- "SSL-Compression", "", 1, -1},
+ "SSL-Compression", "D", 1, -1},
{"sslcert", "PGSSLCERT", NULL, NULL,
"SSL-Client-Cert", "", 64,
--
2.21.1 (Apple Git-122.3)
=
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: pgsql: Remove support for SSL compression
2021-03-09 02:18 pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 03:26 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 11:19 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 15:11 ` Re: pgsql: Remove support for SSL compression Daniel Gustafsson <daniel@yesql.se>
@ 2021-03-09 15:58 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-09 20:06 ` Re: pgsql: Remove support for SSL compression Daniel Gustafsson <daniel@yesql.se>
2021-03-09 22:42 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
0 siblings, 2 replies; 11+ messages in thread
From: Tom Lane @ 2021-03-09 15:58 UTC (permalink / raw)
To: Daniel Gustafsson <daniel@yesql.se>; +Cc: Michael Paquier <michael@paquier.xyz>; pgsql-committers@lists.postgresql.org
Daniel Gustafsson <daniel@yesql.se> writes:
> Having tried a number of different ways to fix this I think the least intrusive
> fix is to teach pg_upgrade and dblink about sslcompression, like how've already
> taught it about other options. Building any infrastructure to handle
> deprecated options and extending the dispchar with a classification for
> deprecation for just this one option seems overkill. Deprecating options is
> also not something frequently done, so the cost/benefit for something
> complicated seems off.
I'm fairly distressed by this patch series, and this proposed change in
particular, because it seems to be going in very much the wrong direction.
The objective ought to be simplification, but you're doing exactly the
opposite.
Also, the changes in postgres_fdw.out remind me way too much of this
problem my successors at Red Hat are fighting:
https://bugzilla.redhat.com/show_bug.cgi?id=1915179
The context there is that they are now shipping concurrently-installable
packages for a couple of different PG versions, but they only install
the latest available version of libpq.so into /usr/lib, figuring that
the back-rev versions can rely on that one. Maybe that's a foolish idea
on their part (but I have a vague idea that Debian does something
similar?). Any such setup is going to have pain whenever we change
the externally-visible behavior of libpq.
I'm inclined to think that we should leave this parameter completely
alone, and at most choose to ignore its value internally to libpq.
But really, why is there urgency to do anything at all with it?
It's not our business whether OpenSSL chooses to ignore it.
In short, I think I'm a vote for reverting to the v13 behavior.
regards, tom lane
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: pgsql: Remove support for SSL compression
2021-03-09 02:18 pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 03:26 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 11:19 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 15:11 ` Re: pgsql: Remove support for SSL compression Daniel Gustafsson <daniel@yesql.se>
2021-03-09 15:58 ` Re: pgsql: Remove support for SSL compression Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-03-09 20:06 ` Daniel Gustafsson <daniel@yesql.se>
1 sibling, 0 replies; 11+ messages in thread
From: Daniel Gustafsson @ 2021-03-09 20:06 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Michael Paquier <michael@paquier.xyz>; pgsql-committers@lists.postgresql.org
> On 9 Mar 2021, at 16:58, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> In short, I think I'm a vote for reverting to the v13 behavior.
Ok, then let us just go ahead and do that.
--
Daniel Gustafsson https://vmware.com/
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: pgsql: Remove support for SSL compression
2021-03-09 02:18 pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 03:26 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 11:19 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 15:11 ` Re: pgsql: Remove support for SSL compression Daniel Gustafsson <daniel@yesql.se>
2021-03-09 15:58 ` Re: pgsql: Remove support for SSL compression Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-03-09 22:42 ` Michael Paquier <michael@paquier.xyz>
2021-03-09 22:45 ` Re: pgsql: Remove support for SSL compression Tom Lane <tgl@sss.pgh.pa.us>
1 sibling, 1 reply; 11+ messages in thread
From: Michael Paquier @ 2021-03-09 22:42 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Daniel Gustafsson <daniel@yesql.se>; pgsql-committers@lists.postgresql.org
On Tue, Mar 09, 2021 at 10:58:21AM -0500, Tom Lane wrote:
> I'm fairly distressed by this patch series, and this proposed change in
> particular, because it seems to be going in very much the wrong direction.
> The objective ought to be simplification, but you're doing exactly the
> opposite.
Yeah. I'd rather simplify things more.
> Also, the changes in postgres_fdw.out remind me way too much of this
> problem my successors at Red Hat are fighting:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=1915179
>
> The context there is that they are now shipping concurrently-installable
> packages for a couple of different PG versions, but they only install
> the latest available version of libpq.so into /usr/lib, figuring that
> the back-rev versions can rely on that one. Maybe that's a foolish idea
> on their part (but I have a vague idea that Debian does something
> similar?). Any such setup is going to have pain whenever we change
> the externally-visible behavior of libpq.
Err. That's indeed a weird choice as I would have though that any
past version of postgres_fdw.so or dblink.so would link to their
respective libpq, but that makes LD_LIBRARY_PATH a no-brainer.
> I'm inclined to think that we should leave this parameter completely
> alone, and at most choose to ignore its value internally to libpq.
> But really, why is there urgency to do anything at all with it?
> It's not our business whether OpenSSL chooses to ignore it.
>
> In short, I think I'm a vote for reverting to the v13 behavior.
The libpq part is a good point, as it could be annoying for people to
get a changing behavior once the libpq version changes for anything
using the older major version binaries once the newer libpq is out. I
am still in favor of keeping the simplifications in the backend though
as it simplifies some catalogs and PgBackendSSLStatus, and we know
that SSL compression does not really matter these days.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: pgsql: Remove support for SSL compression
2021-03-09 02:18 pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 03:26 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 11:19 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 15:11 ` Re: pgsql: Remove support for SSL compression Daniel Gustafsson <daniel@yesql.se>
2021-03-09 15:58 ` Re: pgsql: Remove support for SSL compression Tom Lane <tgl@sss.pgh.pa.us>
2021-03-09 22:42 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
@ 2021-03-09 22:45 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-10 01:05 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 11+ messages in thread
From: Tom Lane @ 2021-03-09 22:45 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; +Cc: Daniel Gustafsson <daniel@yesql.se>; pgsql-committers@lists.postgresql.org
Michael Paquier <michael@paquier.xyz> writes:
> On Tue, Mar 09, 2021 at 10:58:21AM -0500, Tom Lane wrote:
>> In short, I think I'm a vote for reverting to the v13 behavior.
> The libpq part is a good point, as it could be annoying for people to
> get a changing behavior once the libpq version changes for anything
> using the older major version binaries once the newer libpq is out. I
> am still in favor of keeping the simplifications in the backend though
> as it simplifies some catalogs and PgBackendSSLStatus, and we know
> that SSL compression does not really matter these days.
I have no objection to the backend-side changes, since we can be sure
those won't affect people until they do a major-version upgrade to v14.
But the situation is squishier on the client side, and I don't really
see that pulling out libpq's support is buying us much.
regards, tom lane
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: pgsql: Remove support for SSL compression
2021-03-09 02:18 pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 03:26 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 11:19 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 15:11 ` Re: pgsql: Remove support for SSL compression Daniel Gustafsson <daniel@yesql.se>
2021-03-09 15:58 ` Re: pgsql: Remove support for SSL compression Tom Lane <tgl@sss.pgh.pa.us>
2021-03-09 22:42 ` Re: pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 22:45 ` Re: pgsql: Remove support for SSL compression Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-03-10 01:05 ` Michael Paquier <michael@paquier.xyz>
0 siblings, 0 replies; 11+ messages in thread
From: Michael Paquier @ 2021-03-10 01:05 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Daniel Gustafsson <daniel@yesql.se>; pgsql-committers@lists.postgresql.org
On Tue, Mar 09, 2021 at 05:45:56PM -0500, Tom Lane wrote:
> I have no objection to the backend-side changes, since we can be sure
> those won't affect people until they do a major-version upgrade to v14.
> But the situation is squishier on the client side, and I don't really
> see that pulling out libpq's support is buying us much.
Agreed. So done this way and applied a fix that pushes back libpq in
its original state while letting the backend alone.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 11+ messages in thread
end of thread, other threads:[~2021-03-10 01:05 UTC | newest]
Thread overview: 11+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 02:18 pgsql: Remove support for SSL compression Michael Paquier <michael@paquier.xyz>
2021-03-09 03:26 ` Michael Paquier <michael@paquier.xyz>
2021-03-09 11:19 ` Daniel Gustafsson <daniel@yesql.se>
2021-03-09 12:33 ` Michael Paquier <michael@paquier.xyz>
2021-03-09 11:19 ` Michael Paquier <michael@paquier.xyz>
2021-03-09 15:11 ` Daniel Gustafsson <daniel@yesql.se>
2021-03-09 15:58 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-09 20:06 ` Daniel Gustafsson <daniel@yesql.se>
2021-03-09 22:42 ` Michael Paquier <michael@paquier.xyz>
2021-03-09 22:45 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-03-10 01:05 ` Michael Paquier <michael@paquier.xyz>
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