Re: pgsql: Refactor libpq state machine for negotiating encryption - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: pgsql: Refactor libpq state machine for negotiating encryption
Date
Msg-id bb3b94da-afc7-438d-8940-cb946e553d9d@eisentraut.org
Whole thread Raw
In response to [MASSMAIL]pgsql: Refactor libpq state machine for negotiating encryption  (Heikki Linnakangas <heikki.linnakangas@iki.fi>)
Responses Re: pgsql: Refactor libpq state machine for negotiating encryption
List pgsql-committers
On 08.04.24 03:25, Heikki Linnakangas wrote:
> Refactor libpq state machine for negotiating encryption
> 
> This fixes the few corner cases noted in commit 705843d294, as shown
> by the changes in the test.

Either this or something nearby appears to have broken the error 
reporting from psql or libpq when failing to get an SSL connection:

PG16:

psql 'sslmode=require host=localhost'
psql: error: connection to server at "localhost" (::1), port 65432 
failed: server does not support SSL, but SSL was required

master:

psql 'sslmode=require host=localhost'
psql: error: connection to server at "localhost" (::1), port 65432 failed:

(sic, the output ends after the colon).

This commit removed that detail error message string from the code, but 
I don't see any similar message that would take its place.




pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Add pg_logging_init() calls missing in commit ba3e6e2bca
Next
From: Tom Lane
Date:
Subject: pgsql: Doc: fix minor oversight in ALTER DEFAULT PRIVILEGES ref page.