Fix an assortment of typos
authorDavid Rowley <drowley@postgresql.org>
Fri, 3 May 2024 14:33:25 +0000 (02:33 +1200)
committerDavid Rowley <drowley@postgresql.org>
Fri, 3 May 2024 14:33:25 +0000 (02:33 +1200)
Author: Alexander Lakhin
Discussion: https://postgr.es/m/ae9f2fcb-4b24-5bb0-4240-efbbbd944ca1@gmail.com

25 files changed:
contrib/amcheck/verify_nbtree.c
doc/src/sgml/regress.sgml
doc/src/sgml/targets-meson.txt
src/backend/access/brin/brin.c
src/backend/access/transam/slru.c
src/backend/access/transam/xlog.c
src/backend/catalog/heap.c
src/backend/executor/nodeValuesscan.c
src/backend/nodes/queryjumblefuncs.c
src/backend/replication/logical/slotsync.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/adt/varlena.c
src/bin/pg_combinebackup/pg_combinebackup.c
src/bin/pg_dump/filter.c
src/bin/pg_upgrade/check.c
src/fe_utils/recovery_gen.c
src/include/catalog/heap.h
src/include/common/blkreftable.h
src/include/nodes/pathnodes.h
src/include/nodes/primnodes.h
src/interfaces/libpq/t/005_negotiate_encryption.pl
src/test/authentication/t/006_login_trigger.pl
src/test/modules/test_json_parser/t/004_test_parser_perf.pl
src/test/modules/worker_spi/t/001_worker_spi.pl
src/test/modules/worker_spi/worker_spi.c

index 20da4a46ba3c1b898c51f594501841f4f51bcbc3..70f65b645a609877241c274864b050c0ead6a493 100644 (file)
@@ -1086,7 +1086,7 @@ bt_entry_unique_check(BtreeCheckState *state, IndexTuple itup,
 
    /*
     * Current tuple has no posting list. If TID is visible save info about it
-    * for the next comparisons in the loop in bt_page_check(). Report
+    * for the next comparisons in the loop in bt_target_page_check(). Report
     * duplicate if lVis_tid is already valid.
     */
    else
@@ -1953,7 +1953,7 @@ bt_target_page_check(BtreeCheckState *state)
  * Note that !readonly callers must reverify that target page has not
  * been concurrently deleted.
  *
- * Save rightfirstdataoffset for detailed error message.
+ * Save rightfirstoffset for detailed error message.
  */
 static BTScanInsert
 bt_right_page_check_scankey(BtreeCheckState *state, OffsetNumber *rightfirstoffset)
index d7e78204adc92d688941300db170545dff636454..d1042e022280da43c558f63cc9e6b13c63873fff 100644 (file)
@@ -331,7 +331,7 @@ make check-world PG_TEST_EXTRA='kerberos ldap ssl load_balance libpq_encryption'
      <term><literal>xid_wraparound</literal></term>
      <listitem>
       <para>
-       Runs the test suite under <filename>src/test/module/xid_wrapround</filename>.
+       Runs the test suite under <filename>src/test/modules/xid_wraparound</filename>.
        Not enabled by default because it is resource intensive.
       </para>
      </listitem>
index 1c42dd30285368c4d30d2916668ae3f60b57f7f9..bd470c87a70901bb36d0eb3f685855fe000a1e3b 100644 (file)
@@ -11,7 +11,7 @@ Code Targets:
   backend                       Build backend and related modules
   bin                           Build frontend binaries
   contrib                       Build contrib modules
-  pl                            Build procedual languages
+  pl                            Build procedural languages
 
 Developer Targets:
   reformat-dat-files            Rewrite catalog data files into standard format
index bf28400dd84345627bb702a2c1193a3f1d5535c7..d0f3848c9525e14c67ba01385a2f64b1bbe114c9 100644 (file)
@@ -2598,7 +2598,7 @@ _brin_parallel_heapscan(BrinBuildState *state)
  *
  * After waiting for all workers to finish, merge the per-worker results into
  * the complete index. The results from each worker are sorted by block number
- * (start of the page range). While combinig the per-worker results we merge
+ * (start of the page range). While combining the per-worker results we merge
  * summaries for the same page range, and also fill-in empty summaries for
  * ranges without any tuples.
  *
index f99ec38a4a19c02c6c277dd733edd21b130edfd1..77b05cc0a746db79b5f8968880bb673b83ecbb4c 100644 (file)
@@ -228,7 +228,6 @@ SimpleLruAutotuneBuffers(int divisor, int max)
  * name: name of SLRU.  (This is user-visible, pick with care!)
  * nslots: number of page slots to use.
  * nlsns: number of LSN groups per page (set to zero if not relevant).
- * ctllock: LWLock to use to control access to the shared control structure.
  * subdir: PGDATA-relative subdirectory that will contain the files.
  * buffer_tranche_id: tranche ID to use for the SLRU's per-buffer LWLocks.
  * bank_tranche_id: tranche ID to use for the bank LWLocks.
index 34a2c71812d0501cf24cf1c5a19ab9ddad7e97df..c3fd9c1eaed511199d0741e3df185959332cde3a 100644 (file)
@@ -8507,7 +8507,7 @@ xlog_redo(XLogReaderState *record)
 
 /*
  * Return the extra open flags used for opening a file, depending on the
- * value of the GUCs wal_sync_method, fsync and io_direct.
+ * value of the GUCs wal_sync_method, fsync and debug_io_direct.
  */
 static int
 get_sync_bit(int method)
index 136cc42a92f07ed779df23b11893e77bb2fe977a..922ba79ac256184f64898fd267aa2586c927538a 100644 (file)
@@ -2465,7 +2465,7 @@ AddRelationNewConstraints(Relation rel,
                 * Check against pre-existing constraints.  If we are allowed
                 * to merge with an existing constraint, there's no more to do
                 * here. (We omit the duplicate constraint from the result,
-                * which is what ATAddCheckConstraint wants.)
+                * which is what ATAddCheckNNConstraint wants.)
                 */
                if (MergeWithExistingConstraint(rel, ccname, expr,
                                                allow_merge, is_local,
index 78b512931b329578961a302b0ac85d4c71308b96..92948917a08b41c5bef3c25a1f18e97e2d23e60b 100644 (file)
@@ -18,7 +18,6 @@
  *     ExecValuesScan          scans a values list.
  *     ExecValuesNext          retrieve next tuple in sequential order.
  *     ExecInitValuesScan      creates and initializes a valuesscan node.
- *     ExecEndValuesScan       releases any storage allocated.
  *     ExecReScanValuesScan    rescans the values list
  */
 #include "postgres.h"
index be823a7f8fa47ca15c816a9b5d5b1899eec2fa0b..129fb447099fef13a5a5224be14e78968607c161 100644 (file)
@@ -57,7 +57,6 @@ static void RecordConstLocation(JumbleState *jstate, int location);
 static void _jumbleNode(JumbleState *jstate, Node *node);
 static void _jumbleA_Const(JumbleState *jstate, Node *node);
 static void _jumbleList(JumbleState *jstate, Node *node);
-static void _jumbleRangeTblEntry(JumbleState *jstate, Node *node);
 
 /*
  * Given a possibly multi-statement source string, confine our attention to the
index 39ff5fe96964b9fe9fd7ea3549d51c1fc5f1b7c1..3f3e5941bce5c39c852f5d32bffcfcee7965420f 100644 (file)
@@ -1041,8 +1041,8 @@ ValidateSlotSyncParams(int elevel)
    /*
     * Logical slot sync/creation requires wal_level >= logical.
     *
-    * Sincle altering the wal_level requires a server restart, so error out
-    * in this case regardless of elevel provided by caller.
+    * Since altering the wal_level requires a server restart, so error out in
+    * this case regardless of elevel provided by caller.
     */
    if (wal_level < WAL_LEVEL_LOGICAL)
        ereport(ERROR,
index b3428e2ae49372f3a45f63e5d02287b4ab055b1c..302cd8e7f331c39b7c8a3ce34d8c7f5eb680cb50 100644 (file)
@@ -11632,7 +11632,7 @@ get_xmltable(TableFunc *tf, deparse_context *context, bool showimplicit)
 }
 
 /*
- * get_json_nested_columns - Parse back nested JSON_TABLE columns
+ * get_json_table_nested_columns - Parse back nested JSON_TABLE columns
  */
 static void
 get_json_table_nested_columns(TableFunc *tf, JsonTablePlan *plan,
index d1b09dedfd4a8d8d5add824513bc38fab89297d9..dccd130c9110529f1aab6df88d7d46874a174a82 100644 (file)
@@ -6284,7 +6284,7 @@ unicode_norm_form_from_string(const char *formstr)
 /*
  * Returns version of Unicode used by Postgres in "major.minor" format (the
  * same format as the Unicode version reported by ICU). The third component
- * ("update version") never involves additions to the character repertiore and
+ * ("update version") never involves additions to the character repertoire and
  * is unimportant for most purposes.
  *
  * See: https://unicode.org/versions/
index 027a16a26ca19618e36393dc47be1eb424eb390a..f4a1f499536db16327ef184a578a5f804d8ca583 100644 (file)
@@ -844,7 +844,7 @@ process_directory_recursively(Oid tsoid,
     * files requiring reconstruction. If such files occur outside these
     * directories, we want to just copy them straight to the output
     * directory. This is to protect against a user creating a file with a
-    * strange name like INCREMENTAL.config and then compaining that
+    * strange name like INCREMENTAL.config and then complaining that
     * incremental backups don't work properly. The test here is a bit tricky:
     * incremental files occur in subdirectories of base, in pg_global itself,
     * and in subdirectories of pg_tblspc only if in-place tablespaces are
index 9fdb9cbdcd35a8772f4e70f276082ca1fd574cd8..3fb93c5f155f1d39aaeadf403a90dc12475101ed 100644 (file)
@@ -204,7 +204,7 @@ filter_get_keyword(const char **line, int *size)
 }
 
 /*
- * read_quoted_pattern - read quoted possibly multi line string
+ * read_quoted_string - read quoted possibly multi line string
  *
  * Reads a quoted string which can span over multiple lines and returns a
  * pointer to next char after ending double quotes; it will exit on errors.
index ad1f8e3bcb1a1a1a7c7d04226b5a319483d3d1d2..11e705e8ec8f4de3e444b40f3321d8ba29dca236 100644 (file)
@@ -1945,7 +1945,7 @@ check_old_cluster_subscription_state(void)
                                    "   ON o.roname = 'pg_' || s.oid "
                                    "INNER JOIN pg_catalog.pg_database d "
                                    "   ON d.oid = s.subdbid "
-                                   "WHERE o.roname iS NULL;");
+                                   "WHERE o.roname IS NULL;");
 
            ntup = PQntuples(res);
            for (int i = 0; i < ntup; i++)
index 733982a82f7422e962b314b602854c95b7f87cc7..c4838a4bddce1420aea91343c76c8ba75e0acc94 100644 (file)
@@ -20,7 +20,7 @@ static char *escape_quotes(const char *src);
  * return it.
  *
  * This accepts the dbname which will be appended to the primary_conninfo.
- * The dbname will be ignored by walreciever process but slotsync worker uses
+ * The dbname will be ignored by walreceiver process but slotsync worker uses
  * it to connect to the primary server.
  */
 PQExpBuffer
index 21e31f9c974b495515930a843f7b15911d6e2dd2..e446d49b3ea37bf78346948618390f4a52b0fcc3 100644 (file)
@@ -116,7 +116,7 @@ extern List *AddRelationNewConstraints(Relation rel,
                                       const char *queryString);
 extern List *AddRelationNotNullConstraints(Relation rel,
                                           List *constraints,
-                                          List *additional_notnulls);
+                                          List *old_notnulls);
 
 extern void RelationClearMissing(Relation rel);
 extern void SetAttrMissing(Oid relid, char *attname, char *value);
index 42295b7c52be45250b5b65f56392531d62cff255..43b913a82ecdf27a33e011b1234261f46f6b1770 100644 (file)
@@ -44,7 +44,7 @@ typedef struct BlockRefTableWriter BlockRefTableWriter;
  * report_error_fn should not return.
  */
 typedef int (*io_callback_fn) (void *callback_arg, void *data, int length);
-typedef void (*report_error_fn) (void *calblack_arg, char *msg,...) pg_attribute_printf(2, 3);
+typedef void (*report_error_fn) (void *callback_arg, char *msg,...) pg_attribute_printf(2, 3);
 
 
 /*
index b8141f141aa7dc3be5f4b746a5471ab6ff5503c1..91a6ce90d8332834bf2cec2750a626e43eb231ee 100644 (file)
@@ -1867,7 +1867,7 @@ typedef struct ForeignPath
  *
  * We provide a set of hooks here - which the provider must take care to set
  * up correctly - to allow extensions to supply their own methods of scanning
- * a relation or joing relations.  For example, a provider might provide GPU
+ * a relation or join relations.  For example, a provider might provide GPU
  * acceleration, a cache-based scan, or some other kind of logic we haven't
  * dreamed up yet.
  *
index 247cecb4b4574244362c94d7da9400ac9ab935d5..43f5766d7327c41b3c230a8f39c5d3c2242e09ab 100644 (file)
@@ -1641,7 +1641,7 @@ typedef struct JsonReturning
  *
  * The actual value is obtained by evaluating formatted_expr.  raw_expr is
  * only there for displaying the original user-written expression and is not
- * evaluated by ExecInterpExpr() and eval_const_exprs_mutator().
+ * evaluated by ExecInterpExpr() and eval_const_expressions_mutator().
  */
 typedef struct JsonValueExpr
 {
index 1c37f832e761579c5118815536e3720ffb6753aa..03a9079f3fab946921aad4ca9e6c6cca421bfe5b 100644 (file)
@@ -395,7 +395,7 @@ nogssuser   disable      disable      *              connect, authok
    # The expected events and outcomes above assume that SSL support
    # is enabled. When libpq is compiled without SSL support, all
    # attempts to connect with sslmode=require or
-   # sslnegotition=direct/requiredirectwould fail immediately without
+   # sslnegotiation=direct/requiredirect would fail immediately without
    # even connecting to the server. Skip those, because we tested
    # them earlier already.
    my ($sslmodes, $sslnegotiations);
@@ -552,7 +552,7 @@ done_testing();
 
 ### Helper functions
 
-# Test the cube of parameters: user, gssencmode, sslmode, and sslnegotitation
+# Test the cube of parameters: user, gssencmode, sslmode, and sslnegotiation
 sub test_matrix
 {
    local $Test::Builder::Level = $Test::Builder::Level + 1;
index 8229490ae27253bbe883bbbe540c7ea794bccdf5..30d852a96ad6f3d61f4611d1ea26ff54fe8d5b89 100644 (file)
@@ -143,7 +143,7 @@ psql_command(
    log_exact => '2',
    err_like => [qr/You are welcome/]);
 
-# Try to login as allowed Alice.  We don't check the Mallroy login, because
+# Try to login as allowed Alice.  We don't check the Mallory login, because
 # FATAL error could cause a timing-dependant panic of IPC::Run.
 psql_command(
    $node, 'SELECT 1;', 0, 'try regress_alice',
index c61fdf898a9b9340206835da2e53a49d1b513bc8..e82bb3695b82ffeaa5053d0819ad040e94843cec 100644 (file)
@@ -4,7 +4,7 @@
 # Test the JSON parser performance tester. Here we are just checking that
 # the performance tester can run, both with the standard parser and the
 # incremental parser. An actual performance test will run with thousands
-# of iterations onstead of just one.
+# of iterations instead of just one.
 
 use strict;
 use warnings;
index 177e1c6314fed17469c3d73698603f5e6b176043..fcd76b43e8e489eb0058218c8d8e58aedb69d0bb 100644 (file)
@@ -115,7 +115,7 @@ my $noconndb_id = $node->safe_psql('mydb',
 my $log_offset = -s $node->logfile;
 
 # worker_spi_launch() may be able to detect that the worker has been
-# stopped, so do not rely on psql_safe().
+# stopped, so do not rely on safe_psql().
 $node->psql('postgres',
    qq[SELECT worker_spi_launch(12, $noconndb_id, $myrole_id);]);
 $node->wait_for_log(
index 22177cf2b59e632a2b00a0b0709026e4254ed53e..7e1042f4ab6c363c204ee513d3657b9de34e2b7f 100644 (file)
@@ -384,7 +384,7 @@ _PG_init(void)
    /*
     * Now fill in worker-specific data, and do the actual registrations.
     *
-    * bgw_extra can optionally include a dabatase OID, a role OID and a set
+    * bgw_extra can optionally include a database OID, a role OID and a set
     * of flags.  This is left empty here to fallback to the related GUCs at
     * startup (0 for the bgworker flags).
     */