From 2ae459b08523ab110d1e2d60b46eb6bcd253bbdc Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 13 Aug 2026 15:04:40 +0300 Subject: [PATCH] Fix misc spelling mistakes in comments, docs and tests --- contrib/test_decoding/specs/parallel_session_origin.spec | 7 ++++--- doc/src/sgml/gist.sgml | 2 +- src/backend/access/transam/xlog.c | 8 ++++---- src/backend/utils/cache/inval.c | 2 +- src/interfaces/libpq/t/003_load_balance_host_list.pl | 4 ++-- 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/contrib/test_decoding/specs/parallel_session_origin.spec b/contrib/test_decoding/specs/parallel_session_origin.spec index 2253a7a14eb..9178c31c7c0 100644 --- a/contrib/test_decoding/specs/parallel_session_origin.spec +++ b/contrib/test_decoding/specs/parallel_session_origin.spec @@ -50,9 +50,10 @@ step "s1_store_lsn" { } step "s1_reset" { SELECT pg_replication_origin_session_reset(); } -# Firstly s0 attaches to a origin and s1 attaches to the same. Both sessions -# commits a transaction and store the local_lsn of the replication origin. -# Compare LSNs and expect latter transaction (done by s1) has larger local_lsn. +# First s0 and s1 attach to the same origin. Then both sessions +# commit a transaction and store the local_lsn of the replication +# origin. Compare LSNs and expect that the latter transaction (done +# by s1) has a larger local_lsn. permutation "s0_setup" "s0_is_setup" "s1_setup" "s1_is_setup" "s0_add_message" "s0_store_lsn" "s1_add_message" "s1_store_lsn" "s0_compare" "s1_reset" "s0_reset" # Test that the origin cannot be released if another session is actively using diff --git a/doc/src/sgml/gist.sgml b/doc/src/sgml/gist.sgml index 3f1a01f381f..820f9298061 100644 --- a/doc/src/sgml/gist.sgml +++ b/doc/src/sgml/gist.sgml @@ -944,7 +944,7 @@ my_fetch(PG_FUNCTION_ARGS) fetched_data = palloc_object(fetched_data_type); /* - * Convert 'fetched_data' into the a Datum of the original datatype. + * Convert 'fetched_data' into a Datum of the original datatype. */ /* fill *retval from fetched_data. */ diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index b23d8bbbdad..c3baca5193b 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -8785,10 +8785,10 @@ UpdateFullPageWrites(void) /* * It's always safe to take full page images, even when not strictly - * required, but not the other round. So if we're setting full_page_writes - * to true, first set it true and then write the WAL record. If we're - * setting it to false, first write the WAL record and then set the global - * flag. + * required, but not the other way round. So if we're setting + * full_page_writes to true, first set it true and then write the WAL + * record. If we're setting it to false, first write the WAL record and + * then set the global flag. */ if (fullPageWrites) { diff --git a/src/backend/utils/cache/inval.c b/src/backend/utils/cache/inval.c index 63dc36d4d91..10c6820a3c1 100644 --- a/src/backend/utils/cache/inval.c +++ b/src/backend/utils/cache/inval.c @@ -1911,7 +1911,7 @@ CallSyscacheCallbacks(SysCacheIdentifier cacheid, uint32 hashvalue) } /* - * CallSyscacheCallbacks + * CallRelSyncCallbacks */ void CallRelSyncCallbacks(Oid relid) diff --git a/src/interfaces/libpq/t/003_load_balance_host_list.pl b/src/interfaces/libpq/t/003_load_balance_host_list.pl index 1f970ff994b..7c25b2e0e64 100644 --- a/src/interfaces/libpq/t/003_load_balance_host_list.pl +++ b/src/interfaces/libpq/t/003_load_balance_host_list.pl @@ -76,7 +76,7 @@ $node2->stop(); # working one. $node3->connect_ok( "host=$hostlist port=$portlist load_balance_hosts=disable", - "load_balance_hosts=disable continues until it connects to the a working node", + "load_balance_hosts=disable continues until it connects to a working node", sql => "SELECT 'connect3'", log_like => [qr/statement: SELECT 'connect3'/]); @@ -86,7 +86,7 @@ foreach my $i (1 .. 5) { $node3->connect_ok( "host=$hostlist port=$portlist load_balance_hosts=random", - "load_balance_hosts=random continues until it connects to the a working node", + "load_balance_hosts=random continues until it connects to a working node", sql => "SELECT 'connect4'", log_like => [qr/statement: SELECT 'connect4'/]); }