From 5453a644b5341b7eb2b9cc34945cbc6fee8dc73b Mon Sep 17 00:00:00 2001 From: albert tan Date: Tue, 6 Jan 2026 10:37:44 +0800 Subject: [PATCH V3] Correct comment wording in extension.c Note that 'will be search', It's a voice error it ought to be revised to 'will be searched'. Author: albert tan --- src/backend/commands/extension.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/backend/commands/extension.c b/src/backend/commands/extension.c index bfabcfc..79b3422 100644 --- a/src/backend/commands/extension.c +++ b/src/backend/commands/extension.c @@ -377,7 +377,7 @@ is_extension_script_filename(const char *filename) } /* - * Return a list of directories declared on extension_control_path GUC. + * Return the list of directories declared on extension_control_path GUC. */ static List * get_extension_control_directories(void) @@ -490,7 +490,7 @@ get_extension_script_directory(ExtensionControlFile *control) /* * The directory parameter can be omitted, absolute, or relative to the * installation's base directory, which can be the sharedir or a custom - * path that it was set extension_control_path. It depends where the + * path that was set extension_control_path. It depends where the * .control file was found. */ if (!control->directory) @@ -549,9 +549,9 @@ get_extension_script_filename(ExtensionControlFile *control, * fields of *control. We parse primary file if version == NULL, * else the optional auxiliary file for that version. * - * The control file will be search on Extension_control_path paths if + * The control file will be searched on Extension_control_path paths if * control->control_dir is NULL, otherwise it will use the value of control_dir - * to read and parse the .control file, so it assume that the control_dir is a + * to read and parse the .control file, so it assumes that the control_dir is a * valid path for the control file being parsed. * * Control files are supposed to be very short, half a dozen lines, @@ -2300,7 +2300,7 @@ pg_available_extensions(PG_FUNCTION_ARGS) /* * Ignore already-found names. They are not reachable by the - * path search, so don't shown them. + * path search, so don't show them. */ extname_str = makeString(extname); if (list_member(found_ext, extname_str)) @@ -3949,11 +3949,11 @@ new_ExtensionControlFile(const char *extname) } /* - * Work in a very similar way with find_in_path but it receives an already - * parsed List of paths to search the basename and it do not support macro + * Works in a very similar way to find_in_path, but it receives an already + * parsed List of paths to search the basename, and it does not support macro * replacement or custom error messages (for simplicity). * - * By "already parsed List of paths" this function expected that paths already + * By "already parsed List of paths" this function expects that the paths already * have all macros replaced. */ char * -- 1.8.3.1