Re: Comment for UserMappingPasswordRequired in contrib/postgres_fdw
Andreas Karlsson <andreas@proxel.se>
From: Andreas Karlsson <andreas@proxel.se>
To: Etsuro Fujita <etsuro.fujita@gmail.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-02-22T23:01:31Z
Lists: pgsql-hackers
On 2/22/26 12:10 PM, Etsuro Fujita wrote: >> /* >> * Checks the value of password_required, defaults to true >> * if not defined. The mapping has been pre-validated. >> */ > > I like your wording. I am not a native speaker either, though. This > would be nitpicking, but I think it is better to clearly mention what > the function returns. How about modifying it a bit, like this? > > /* > * 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. > */ No strong opinion. I would be fine with either. I do not think saying that it returns is necessary since you can see that from the function definition but it does not really harm either. -- Andreas Karlsson Percona
Commits
-
postgres_fdw: Fix thinko in comment for UserMappingPasswordRequired().
- e72bde9017c0 14.23 landed
- cf370919a996 15.18 landed
- e0fd58a84199 16.14 landed
- 596a400df7a2 17.10 landed
- be37f270d764 18.4 landed
- e7b97a22383a 19 (unreleased) landed