From: Etsuro Fujita Date: Fri, 27 Feb 2026 08:05:02 +0000 (+0900) Subject: postgres_fdw: Fix thinko in comment for UserMappingPasswordRequired(). X-Git-Tag: REL_18_4~139 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be37f270d7646b39155d31b17d9ab66712e07aaf;p=thirdparty%2Fpostgresql.git postgres_fdw: Fix thinko in comment for UserMappingPasswordRequired(). This commit also rephrases this comment to improve readability. Oversight in commit 6136e94dc. Reported-by: Etsuro Fujita Author: Andreas Karlsson Co-authored-by: Etsuro Fujita Discussion: https://postgr.es/m/CAPmGK16pDnM_wU3kmquPj-M9MYqG3y0BdntRZ0eytqbCaFY3WQ%40mail.gmail.com Backpatch-through: 14 --- diff --git a/contrib/postgres_fdw/connection.c b/contrib/postgres_fdw/connection.c index eb255e74d15..d7acfec9e43 100644 --- a/contrib/postgres_fdw/connection.c +++ b/contrib/postgres_fdw/connection.c @@ -660,8 +660,9 @@ disconnect_pg_server(ConnCacheEntry *entry) } /* - * Return true if the password_required is defined and false for this user - * mapping, otherwise false. The mapping has been pre-validated. + * Check and return the value of password_required, if defined; otherwise, + * return true, which is the default value of it. The mapping has been + * pre-validated. */ static bool UserMappingPasswordRequired(UserMapping *user)