Re: BUG #17625: In PG15 PQsslAttribute returns different values than PG14 when SSL is not in use for the connection
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jacob Champion <jchampion@timescale.com>,
heath.lord@crunchydata.com,
pgsql-bugs@lists.postgresql.org
Date: 2022-09-29T21:10:48Z
Lists: pgsql-bugs
Attachments
- ssl_compression.diff (application/octet-stream) patch
> On 29 Sep 2022, at 22:45, Tom Lane <tgl@sss.pgh.pa.us> wrote: > I'll go tweak the documentation as per Daniel's thoughts and push. Thanks! Reading a few lines further down in the docs I noticed this description for the compression parameter to PQsslAttribute: "If SSL compression is in use, returns the name of the compression algorithm, or "on" if compression is used but the algorithm is not known. If compression is not in use, returns "off"." AFAICT that has never been the case since 91fa7b4719ac, it has always just returned "on" or "off" and never the name of the compression algorithm. I propose to apply the attached backpatched to make the docs align with the code. -- Daniel Gustafsson https://vmware.com/
Commits
-
Adjust PQsslAttributeNames() to match PQsslAttribute().
- 4e4f7b9fcc9a 16.0 landed
-
doc: Fix PQsslAttribute docs for compression
- f84e2ed246d2 11.18 landed
- d9102e456738 12.13 landed
- a613474411e6 15.0 landed
- a3de685013e7 13.9 landed
- 8fef56229fb4 10.23 landed
- 51fd7cdfd07d 16.0 landed
- 064e1c879dd2 14.6 landed
-
Fix bogus behavior of PQsslAttribute(conn, "library").
- cae4688ce81b 15.0 landed
- 80a05679d5a4 16.0 landed
-
Enable SSL library detection via PQsslAttribute()
- ebc8b7d4416d 15.0 cited