]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix set of typos and grammar mistakes
authorMichael Paquier <michael@paquier.xyz>
Wed, 24 Jun 2026 07:00:28 +0000 (16:00 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 24 Jun 2026 07:00:28 +0000 (16:00 +0900)
This is similar to d3bba0415435, batching all the reports of this type
received since the last batch.  This covers typos and inconsistencies
for the most part.

The user-visible documentation change impacts only HEAD.

13 files changed:
contrib/pg_stash_advice/stashfuncs.c
doc/src/sgml/oauth-validators.sgml
doc/src/sgml/stylesheet-html-common.xsl
src/backend/access/transam/xact.c
src/backend/access/transam/xlogprefetcher.c
src/backend/access/transam/xlogrecovery.c
src/backend/postmaster/startup.c
src/backend/utils/activity/pgstat_relation.c
src/backend/utils/activity/pgstat_slru.c
src/backend/utils/adt/float.c
src/backend/utils/adt/pg_dependencies.c
src/include/tsearch/ts_type.h
src/port/pqsignal.c

index d7aa9f2223f4984bd593fd3fed8cb383c71800bc..a70df60579bdae927c1303bc501b3b7ab62e86a8 100644 (file)
@@ -266,9 +266,9 @@ pg_get_advice_stash_contents(PG_FUNCTION_ARGS)
  * SQL-callable function to update an advice stash entry for a particular
  * query ID
  *
- * If the second argument is NULL, we delete any existing advice stash
- * entry; otherwise, we either create an entry or update it with the new
- * advice string.
+ * If the advice string (the third argument) is NULL, we delete any existing
+ * advice stash entry; otherwise, we either create an entry or update it with
+ * the new advice string.
  */
 Datum
 pg_set_stashed_advice(PG_FUNCTION_ARGS)
index d69b6cf98ad733e0d6b7a7205f87536e25f12dd6..6c4a4f947698ba915b28bd1ac17d23e55b6115c5 100644 (file)
@@ -396,7 +396,7 @@ typedef struct ValidatorModuleResult
     field.  Alternatively, <structfield>result->authn_id</structfield> may be set to
     NULL if the token is valid but the associated user identity cannot be
     determined.  If the validator returns <literal>true</literal> and
-    set <structfield>result->authn_id</structfield> then the identity appears
+    sets <structfield>result->authn_id</structfield> then the identity appears
     in the server log when <xref linkend="guc-log-connections"/> includes
     <literal>authentication</literal>.  This happens before authorization and
     will log authentication even if the connection is later rejected due to
index 9dcf96c02e51888917257285b5cfdc9156e10e1e..f94fb9e1ccc6176de0c60bca7634070f5c9de7e6 100644 (file)
@@ -137,7 +137,7 @@ set       toc,title
 
   <!-- pgsql-docs: added xmlns:xlink, autoidx.xsl doesn't include xlink in
        exclude-result-prefixes. Without our customization that just leads to a
-       single xmlns:xlink in this div, but because we emit it it otherwise
+       single xmlns:xlink in this div, but because we emit it, it otherwise
        gets pushed down to the elements output by autoidx.xsl -->
   <div class="index" xmlns:xlink="http://www.w3.org/1999/xlink">
     <p class="indexdiv-quicklinks">
index 5586fbe5b07c6428e180162f0500d313d9ffaef4..de4cf96eaa2caba76474567367ec4a336c5e51c9 100644 (file)
@@ -6223,10 +6223,10 @@ xact_redo_commit(xl_xact_parsed_commit *parsed,
                 * If a transaction completion record arrives that has as-yet
                 * unobserved subtransactions then this will not have been fully
                 * handled by the call to RecordKnownAssignedTransactionIds() in the
-                * main recovery loop in xlog.c. So we need to do bookkeeping again to
-                * cover that case. This is confusing and it is easy to think this
-                * call is irrelevant, which has happened three times in development
-                * already. Leave it in.
+                * main recovery loop in PerformWalRecovery(). So we need to do
+                * bookkeeping again to cover that case. This is confusing and it is
+                * easy to think this call is irrelevant, which has happened three
+                * times in development already. Leave it in.
                 */
                RecordKnownAssignedTransactionIds(max_xid);
 
@@ -6361,10 +6361,10 @@ xact_redo_abort(xl_xact_parsed_abort *parsed, TransactionId xid,
                 * If a transaction completion record arrives that has as-yet
                 * unobserved subtransactions then this will not have been fully
                 * handled by the call to RecordKnownAssignedTransactionIds() in the
-                * main recovery loop in xlog.c. So we need to do bookkeeping again to
-                * cover that case. This is confusing and it is easy to think this
-                * call is irrelevant, which has happened three times in development
-                * already. Leave it in.
+                * main recovery loop in PerformWalRecovery(). So we need to do
+                * bookkeeping again to cover that case. This is confusing and it is
+                * easy to think this call is irrelevant, which has happened three
+                * times in development already. Leave it in.
                 */
                RecordKnownAssignedTransactionIds(max_xid);
 
index 83a3f97a57c8ccaadcef96dc00116adc1f1be296..dff57642ab401118ca83cbbe9a80c955eedb109f 100644 (file)
@@ -804,13 +804,14 @@ XLogPrefetcherNextBlock(uintptr_t pgsr_private, XLogRecPtr *lsn)
 
                /*
                 * Several callsites need to be able to read exactly one record
-                * without any internal readahead.  Examples: xlog.c reading
-                * checkpoint records with emode set to PANIC, which might otherwise
-                * cause XLogPageRead() to panic on some future page, and xlog.c
-                * determining where to start writing WAL next, which depends on the
-                * contents of the reader's internal buffer after reading one record.
-                * Therefore, don't even think about prefetching until the first
-                * record after XLogPrefetcherBeginRead() has been consumed.
+                * without any internal readahead.  Examples: PerformWalRecovery()
+                * trying to read the first record that follows a checkpoint has emode
+                * set to PANIC, which might otherwise cause XLogPageRead() to panic
+                * on some future page, and FinishWalRecovery() determining where to
+                * start writing WAL next, which depends on the contents of the
+                * reader's internal buffer after reading one record. Therefore, don't
+                * even think about prefetching until the first record after
+                * XLogPrefetcherBeginRead() has been consumed.
                 */
                if (prefetcher->reader->decode_queue_tail &&
                        prefetcher->reader->decode_queue_tail->lsn == prefetcher->begin_ptr)
index 4d61795b48363d9e749f5a2128f8dafd6a2488d5..c0ae4d3f63fe479f2058bdf60892bfa35c71a16d 100644 (file)
@@ -447,7 +447,7 @@ EnableStandbyMode(void)
  * the checkpoint record.  On entry, the caller has already read the control
  * file into memory, and passes it as argument.  This function updates it to
  * reflect the recovery state, and the caller is expected to write it back to
- * disk does after initializing other subsystems, but before calling
+ * disk after initializing other subsystems, but before calling
  * PerformWalRecovery().
  *
  * This initializes some global variables like ArchiveRecoveryRequested, and
index b46bac681fef57d2e2c2e11e72711c3832dedf0a..d91b7caac017308092e12ad9ac4bf974c385294e 100644 (file)
@@ -118,8 +118,8 @@ StartupProcShutdownHandler(SIGNAL_ARGS)
 /*
  * Re-read the config file.
  *
- * If one of the critical walreceiver options has changed, flag xlog.c
- * to restart it.
+ * If one of the critical walreceiver options has changed, request the startup
+ * process to restart the walreceiver.
  */
 static void
 StartupRereadConfig(void)
index b2ca28f83ba8a2e09466cf08229e554e462cce9e..04f2eb21d0bb5f34430ac36f7b03fb4c3bd1d774 100644 (file)
@@ -134,7 +134,7 @@ pgstat_assoc_relation(Relation rel)
        Assert(rel->pgstat_enabled);
        Assert(rel->pgstat_info == NULL);
 
-       /* Else find or make the PgStat_TableStatus entry, and update link */
+       /* find or make the PgStat_TableStatus entry, and update link */
        rel->pgstat_info = pgstat_prep_relation_pending(RelationGetRelid(rel),
                                                                                                        rel->rd_rel->relisshared);
 
index f4dfe8697d7506ee98165962cbdce37f319a1545..1863169a0ec90a06e5da63947da36244ae378bce 100644 (file)
@@ -133,9 +133,6 @@ pgstat_get_slru_index(const char *name)
 /*
  * Flush out locally pending SLRU stats entries
  *
- * If nowait is true, this function returns false on lock failure. Otherwise
- * this function always returns true.
- *
  * If nowait is true, this function returns true if the lock could not be
  * acquired. Otherwise return false.
  */
index 262ea2b73ba8c05357791a9200a0882b3945a5b0..4c2ccdfbf3fae491a5b386fca0765fdae4317e9e 100644 (file)
@@ -3965,7 +3965,7 @@ float8_regr_r2(PG_FUNCTION_ARGS)
         * Despite all these precautions, this formula can yield results outside
         * [0, 1] due to roundoff error.  Clamp it to the expected range.
         *
-        * Note that result is guaranteed to be non-negative becase Sxx and Syy
+        * Note that result is guaranteed to be non-negative because Sxx and Syy
         * are non-negative, so we only need to clamp the upper end of the range.
         */
        if (result > 1)
index 7441004909f90ca09b7e3f735743f929adabe069..9c3db103d42a7777effc5a7bc55ac09f9ff66979 100644 (file)
@@ -210,8 +210,7 @@ dependencies_object_end(void *state)
 
        /*
         * Assign attribute numbers to the attributes array, comparing each one
-        * against the dependency attribute to ensure that there there are no
-        * matches.
+        * against the dependency attribute to ensure that there are no matches.
         */
        for (int i = 0; i < natts; i++)
        {
index f0c68d0638aae97dc860a56053cc24b037b86c8c..0226220e4213cb64d49d4c6469af4d0a3cadda8d 100644 (file)
@@ -195,7 +195,7 @@ typedef struct
 {
        QueryItemType type;
        int8            oper;                   /* see above */
-       int16           distance;               /* distance between agrs for OP_PHRASE */
+       int16           distance;               /* distance between args for OP_PHRASE */
        uint32          left;                   /* pointer to left operand. Right operand is
                                                                 * item + 1, left operand is placed
                                                                 * item+item->left */
index a8a1cd2074c4a6964a2a25cfbef5ebc1c60d5e2b..414d671e39f6da8d0a2484ab5535661fd49668a8 100644 (file)
@@ -204,8 +204,8 @@ pqsignal(int signo, pqsigfunc func)
 #else                                                  /* no USE_SIGACTION */
 
        /*
-        * Forward to Windows native signal system, we need to send this though
-        * wrapper handler as it it needs to take single argument only.
+        * Forward to the native Windows signal handler through a wrapper, since
+        * it accepts only one argument.
         */
        if (is_ign)
                wrapper_func_ptr = SIG_IGN;