Fix some typos
authorMichael Paquier <michael@paquier.xyz>
Mon, 22 Jan 2024 04:55:25 +0000 (13:55 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 22 Jan 2024 04:55:25 +0000 (13:55 +0900)
Author: Yongtao Huang
Discussion: https://postgr.es/m/CAOe1Go1F99o5JsphtXdDC5bxm7AzetU8q3AxLh4AAVGKu1AzEQ@mail.gmail.com

src/backend/access/index/indexam.c
src/backend/commands/explain.c
src/backend/replication/logical/worker.c
src/backend/utils/activity/wait_event.c
src/test/modules/test_ginpostinglist/expected/test_ginpostinglist.out
src/test/modules/test_ginpostinglist/sql/test_ginpostinglist.sql

index 85d844f4b64b1c442d8989faf154574544eddb3f..bbd499abcfb8e8ca2e5d712c18834101b5a230ea 100644 (file)
@@ -142,7 +142,7 @@ index_open(Oid relationId, LOCKMODE lockmode)
 }
 
 /* ----------------
- *             try_index_open - open a index relation by relation OID
+ *             try_index_open - open an index relation by relation OID
  *
  *             Same as index_open, except return NULL instead of failing
  *             if the relation does not exist.
index 3d590a6b9f5cdf938ac31d83a1ec8b448c072c56..843472e6ddcfc412a9377eb2704523e875958490 100644 (file)
@@ -2395,7 +2395,7 @@ show_sort_keys(SortState *sortstate, List *ancestors, ExplainState *es)
 }
 
 /*
- * Show the sort keys for a IncrementalSort node.
+ * Show the sort keys for an IncrementalSort node.
  */
 static void
 show_incremental_sort_keys(IncrementalSortState *incrsortstate,
index 911835c5cb3639e50878ea48024fc878bf6a9480..9b598caf3caded024f54b4a83fedcecd4481cbc0 100644 (file)
@@ -332,7 +332,7 @@ static TransactionId stream_xid = InvalidTransactionId;
  */
 static uint32 parallel_stream_nchanges = 0;
 
-/* Are we initializing a apply worker? */
+/* Are we initializing an apply worker? */
 bool           InitializingApplyWorker = false;
 
 /*
index ec14119a71afb539510fafddbf1fc1f5e215b997..e7dd489cbd956b89ccd001cb15efbc95608b0710 100644 (file)
@@ -49,7 +49,7 @@ uint32           *my_wait_event_info = &local_my_wait_event_info;
  * Hash tables for storing custom wait event ids and their names in
  * shared memory.
  *
- * WaitEventExtensionHashById is used to find the name from a event id.
+ * WaitEventExtensionHashById is used to find the name from an event id.
  * Any backend can search it to find custom wait events.
  *
  * WaitEventExtensionHashByName is used to find the event ID from a name.
index 4d0beaecea9a3c2d661710e46b911b79dd2f6145..c3f40ab71d9b5e0128e3d33440680ecfa304b20f 100644 (file)
@@ -1,7 +1,7 @@
 CREATE EXTENSION test_ginpostinglist;
 --
 -- All the logic is in the test_ginpostinglist() function. It will throw
--- a error if something fails.
+-- an error if something fails.
 --
 SELECT test_ginpostinglist();
 NOTICE:  testing with (0, 1), (0, 2), max 14 bytes
index b8cab7accecf46d5d013ffd98af0b38edf31e7ac..107baf8f275c39b8437b7f455be0c885385a867b 100644 (file)
@@ -2,6 +2,6 @@ CREATE EXTENSION test_ginpostinglist;
 
 --
 -- All the logic is in the test_ginpostinglist() function. It will throw
--- a error if something fails.
+-- an error if something fails.
 --
 SELECT test_ginpostinglist();