]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
postgres_fdw: Fix thinko in comment for UserMappingPasswordRequired().
authorEtsuro Fujita <efujita@postgresql.org>
Fri, 27 Feb 2026 08:05:00 +0000 (17:05 +0900)
committerEtsuro Fujita <efujita@postgresql.org>
Fri, 27 Feb 2026 08:05:00 +0000 (17:05 +0900)
This commit also rephrases this comment to improve readability.

Oversight in commit 6136e94dc.

Reported-by: Etsuro Fujita <etsuro.fujita@gmail.com>
Author: Andreas Karlsson <andreas@proxel.se>
Co-authored-by: Etsuro Fujita <etsuro.fujita@gmail.com>
Discussion: https://postgr.es/m/CAPmGK16pDnM_wU3kmquPj-M9MYqG3y0BdntRZ0eytqbCaFY3WQ%40mail.gmail.com
Backpatch-through: 14

contrib/postgres_fdw/connection.c

index add673a47769a40afb33a98a7a75b1c03de6a3cb..311936406f2fece661ab048e070d56d5d88d5c4b 100644 (file)
@@ -667,8 +667,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)