Re: BUG #17625: In PG15 PQsslAttribute returns different values than PG14 when SSL is not in use for the connection
Heath Lord <heath.lord@crunchydata.com>
From: Heath Lord <heath.lord@crunchydata.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Daniel Gustafsson <daniel@yesql.se>,
Jacob Champion <jchampion@timescale.com>, pgsql-bugs@lists.postgresql.org
Date: 2022-09-29T20:21:59Z
Lists: pgsql-bugs
On Thu, Sep 29, 2022 at 4:16 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > I wrote: > > AFAICS that behavioral change is deliberate: for the single case > > of inquiring about "library", PQsslAttribute now tells you which > > SSL implementation libpq *can* use, not which one it's actually > > using on a given connection. I'm not sure that this is a great > > definition, since it's so unlike the behavior for other attributes. > > Actually, wait a minute: both the documentation and the commit > message claim the new behavior is something different than what it > actually is. The intention seems to have been to change the > behavior only for the conn == NULL case. So maybe we need to > fix it as attached. This'd still be broken for the > multiple-libraries scenario, but I admit that that's pretty > hypothetical. > > regards, tom lane > > Tom, I was in the process of drafting a reply, but this new patch seems to resolve my issues with the documentation and functionality. I really appreciate you looking into this and I am good with this patch. Thanks, Heath
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