]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix variety of typos and grammar mistakes
authorMichael Paquier <michael@paquier.xyz>
Tue, 24 Feb 2026 04:26:37 +0000 (13:26 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 24 Feb 2026 04:26:37 +0000 (13:26 +0900)
This commit includes a batch of fixes for various minor typos and
grammar mistakes, that have been proposed to the hackers mailing list
since the beginning of January.

Similar batches are planned on a bi-monthly basis depending on the
amount received, with the next one for the end of April.

13 files changed:
contrib/amcheck/verify_nbtree.c
src/backend/access/brin/brin_minmax_multi.c
src/backend/access/gist/gistget.c
src/backend/access/transam/multixact.c
src/backend/access/transam/xlogrecovery.c
src/backend/backup/basebackup_copy.c
src/backend/commands/extension.c
src/backend/statistics/extended_stats_funcs.c
src/backend/storage/smgr/smgr.c
src/bin/pg_basebackup/pg_receivewal.c
src/bin/pg_resetwal/pg_resetwal.c
src/fe_utils/astreamer_zstd.c
src/include/nodes/parsenodes.h

index 34433e819d4e28fb5c73ec0680b3bab2cc1547f5..e04b7ca694ebb093710515cce6576eb128d6e830 100644 (file)
@@ -864,7 +864,7 @@ heap_entry_is_visible(BtreeCheckState *state, ItemPointer tid)
 }
 
 /*
- * Prepare an error message for unique constrain violation in
+ * Prepare an error message for unique constraint violation in
  * a btree index and report ERROR.
  */
 static void
index b58de13478285f1b046cf7e44f8d3316052440b5..1434c1f938a86f634d6d088f5cb0fb61f7990fe4 100644 (file)
@@ -712,7 +712,7 @@ brin_range_serialize(Ranges *range)
 
 /*
  * brin_range_deserialize
- *       Serialize the in-memory representation into a compact varlena value.
+ *       Deserialize a compact varlena value into the in-memory representation.
  *
  * Simply copy the header and then also the individual values, as stored
  * in the in-memory value array.
index 11b214eb99bc9d30fba6db1e9c936f6b089c9fc3..b64ccf5e912cd43a4bc51c64afe445cdcca56758 100644 (file)
@@ -402,8 +402,8 @@ gistScanPage(IndexScanDesc scan, GISTSearchItem *pageItem,
 
        /*
         * We save the LSN of the page as we read it, so that we know whether it
-        * safe to apply LP_DEAD hints to the page later. This allows us to drop
-        * the pin for MVCC scans, which allows vacuum to avoid blocking.
+        * is safe to apply LP_DEAD hints to the page later. This allows us to
+        * drop the pin for MVCC scans, which allows vacuum to avoid blocking.
         */
        so->curPageLSN = BufferGetLSNAtomic(buffer);
 
index 9585ffd80f20a7210bcea57cefddac0372e0df34..90ec87d9dd6ede03fc0cf2511a0e354fbb4dbed3 100644 (file)
@@ -782,7 +782,7 @@ RecordNewMultiXact(MultiXactId multi, MultiXactOffset offset,
        /*
         * Set the starting offset of this multixid's members.
         *
-        * In the common case, it was already be set by the previous
+        * In the common case, it was already set by the previous
         * RecordNewMultiXact call, as this was the next multixid of the previous
         * multixid.  But if multiple backends are generating multixids
         * concurrently, we might race ahead and get called before the previous
index 38387a522918532fccd8c608cea95efda23b3648..ecd66fd86a486bd87487afe6ba95b95944190c3d 100644 (file)
@@ -3577,9 +3577,9 @@ next_record_is_invalid:
  * timelines, we can reject a switch to a timeline that branched off before
  * this point.
  *
- * If the record is not immediately available, the function returns false
- * if we're not in standby mode. In standby mode, waits for it to become
- * available.
+ * If the record is not immediately available, the function returns XLREAD_FAIL
+ * if we're not in standby mode. In standby mode, the function waits for it to
+ * become available.
  *
  * When the requested record becomes available, the function opens the file
  * containing it (if not open already), and returns XLREAD_SUCCESS. When end
index fecfad9ab7b65d691366743e34a6bb0705a27e52..07f58b39d8c7882ea1a439e4fdd9d26a5cf0ff67 100644 (file)
@@ -66,7 +66,7 @@ typedef struct bbsink_copystream
  * frequently. Ideally, we'd like to send a message when the time since the
  * last message reaches PROGRESS_REPORT_MILLISECOND_THRESHOLD, but checking
  * the system time every time we send a tiny bit of data seems too expensive.
- * So we only check it after the number of bytes sine the last check reaches
+ * So we only check it after the number of bytes since the last check reaches
  * PROGRESS_REPORT_BYTE_INTERVAL.
  */
 #define        PROGRESS_REPORT_BYTE_INTERVAL                           65536
index 574858bfecab7f336a462e8378e4f07c21644b9d..963618a64c4c08c37ed23f07b65820136de06419 100644 (file)
@@ -2528,7 +2528,7 @@ pg_available_extension_versions(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))
index 479f74652bef911949deb838b7b14d883ca75027..b7f0dd731c22812f12089fa8a1a9f42be1887015 100644 (file)
@@ -769,7 +769,7 @@ delete_pg_statistic_ext_data(Oid stxoid, bool inherited)
        HeapTuple       oldtup;
        bool            result = false;
 
-       /* Is there already a pg_statistic tuple for this attribute? */
+       /* Is there already a pg_statistic_ext_data tuple for this attribute? */
        oldtup = SearchSysCache2(STATEXTDATASTXOID,
                                                         ObjectIdGetDatum(stxoid),
                                                         BoolGetDatum(inherited));
index 378c2a03f39eb92119e693b9bb8b5636d4aa1a16..5391640d8613dc87eb13d7f2cd70ac7c7d9dafe5 100644 (file)
@@ -898,7 +898,7 @@ smgrtruncate(SMgrRelation reln, ForkNumber *forknum, int nforks,
        /* Do the truncation */
        for (i = 0; i < nforks; i++)
        {
-               /* Make the cached size is invalid if we encounter an error. */
+               /* Make the cached size invalid if we encounter an error. */
                reln->smgr_cached_nblocks[forknum[i]] = InvalidBlockNumber;
 
                smgrsw[reln->smgr_which].smgr_truncate(reln, forknum[i],
index 4f9a7b076ca21b0c6a67eeddb54f62a518aadeaa..ddfec298fb7a1e4732a487b8ff7c099a65102678 100644 (file)
@@ -770,7 +770,7 @@ main(int argc, char **argv)
 
        if (replication_slot == NULL && (do_drop_slot || do_create_slot))
        {
-               /* translator: second %s is an option name */
+               /* translator: %s is an option name */
                pg_log_error("%s needs a slot to be specified using --slot",
                                         do_drop_slot ? "--drop-slot" : "--create-slot");
                pg_log_error_hint("Try \"%s --help\" for more information.", progname);
index 85dc43d4cdb790e8484e1b42b0c8a15162ae027d..ab766c34d4b8d1523d095e334a8852a9a47ff942 100644 (file)
@@ -188,7 +188,7 @@ main(int argc, char *argv[])
                                if (endptr == optarg || *endptr != '\0' || errno != 0)
                                {
                                        /*------
-                                         translator: the second %s is a command line argument (-e, etc) */
+                                         translator: %s is a command line argument (-e, etc) */
                                        pg_log_error("invalid argument for option %s", "-e");
                                        pg_log_error_hint("Try \"%s --help\" for more information.", progname);
                                        exit(1);
index 885a5608be73ad24358b2ca180d5687d0187c4b9..2bf5c57b9029a25ebf8aa83b99e5589f2a331326 100644 (file)
@@ -3,7 +3,7 @@
  * astreamer_zstd.c
  *
  * Archive streamers that deal with data compressed using zstd.
- * astreamer_zstd_compressor applies lz4 compression to the input stream,
+ * astreamer_zstd_compressor applies zstd compression to the input stream,
  * and astreamer_zstd_decompressor does the reverse.
  *
  * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
index 0aec49bdd222db5cb2e1cad4c9832bbd9885201c..f37131835be787757c5fdab5a592e7d34c107379 100644 (file)
@@ -2665,7 +2665,7 @@ typedef struct AccessPriv
  * Note: because of the parsing ambiguity with the GRANT <privileges>
  * statement, granted_roles is a list of AccessPriv; the execution code
  * should complain if any column lists appear.  grantee_roles is a list
- * of role names, as String values.
+ * of role names, as RoleSpec values.
  * ----------------------
  */
 typedef struct GrantRoleStmt