Re: pgsql: Enhance libpq encryption negotiation tests with new GUC

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
Cc: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: Re: pgsql: Enhance libpq encryption negotiation tests with new GUC
Date: 2024-04-08 09:15:05
Message-ID: a0f25fff-2521-4ef6-a58c-e29bd36e67c5@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On 08/04/2024 09:40, Kyotaro Horiguchi wrote:
> At Sun, 07 Apr 2024 23:50:08 +0000, Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> wrote in
>> Enhance libpq encryption negotiation tests with new GUC
>
> This commit adds the following messages:
>
>> gettext_noop("Log details of pre-authentication connection handshake."),
>
> Similar to a nearby commit, other messages with a similar context use
> the phrase "Logs <something>". Wouldn't it be better to align this
> message with existing ones?
>
> diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c
> index 83e3a59d7e..4584829992 100644
> --- a/src/backend/utils/misc/guc_tables.c
> +++ b/src/backend/utils/misc/guc_tables.c
> @@ -1227,7 +1227,7 @@ struct config_bool ConfigureNamesBool[] =
> },
> {
> {"trace_connection_negotiation", PGC_POSTMASTER, DEVELOPER_OPTIONS,
> - gettext_noop("Log details of pre-authentication connection handshake."),
> + gettext_noop("Logs details of pre-authentication connection handshake."),
> NULL,
> GUC_NOT_IN_SAMPLE
> },

We're not very consistent about it, there's also:

log_temp_files: Log the use of temporary files larger than this number
of kilobytes.
trace_syncscan: Generate debugging output for synchronized scanning.
trace_sort: Emit information about resource usage in sorting.
backtrace_functions: Log backtrace for errors in these functions.
backtrace_on_internal_error: Log backtrace for any error with error code
XX000 (internal error).

But I agree the "Logs ..." phrasing is more common, so committed.

--
Heikki Linnakangas
Neon (https://neon.tech)

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2024-04-08 09:18:41 pgsql: Fill CommonRdOptions with default values in extract_autovac_opts
Previous Message Heikki Linnakangas 2024-04-08 09:14:32 pgsql: Adjust wording of trace_connection_negotiation GUC's description