From 726355e9dd076ee8a0d5ba05626dcba7a023dfbc Mon Sep 17 00:00:00 2001 From: Yongtao Huang Date: Sun, 21 Jan 2024 20:15:52 +0800 Subject: [PATCH] Fix some typos --- src/backend/access/index/indexam.c | 2 +- src/backend/commands/explain.c | 2 +- src/backend/replication/logical/worker.c | 2 +- src/backend/utils/activity/wait_event.c | 2 +- src/test/modules/test_ginpostinglist/expected/test_ginpostinglist.out | 2 +- src/test/modules/test_ginpostinglist/sql/test_ginpostinglist.sql | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/backend/access/index/indexam.c b/src/backend/access/index/indexam.c index 85d844f..bbd499a 100644 --- a/src/backend/access/index/indexam.c +++ b/src/backend/access/index/indexam.c @@ -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. diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index 3d590a6..843472e 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -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, diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c index 911835c..9b598ca 100644 --- a/src/backend/replication/logical/worker.c +++ b/src/backend/replication/logical/worker.c @@ -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; /* diff --git a/src/backend/utils/activity/wait_event.c b/src/backend/utils/activity/wait_event.c index ec14119..e7dd489 100644 --- a/src/backend/utils/activity/wait_event.c +++ b/src/backend/utils/activity/wait_event.c @@ -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. diff --git a/src/test/modules/test_ginpostinglist/expected/test_ginpostinglist.out b/src/test/modules/test_ginpostinglist/expected/test_ginpostinglist.out index 4d0beae..c3f40ab 100644 --- a/src/test/modules/test_ginpostinglist/expected/test_ginpostinglist.out +++ b/src/test/modules/test_ginpostinglist/expected/test_ginpostinglist.out @@ -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 diff --git a/src/test/modules/test_ginpostinglist/sql/test_ginpostinglist.sql b/src/test/modules/test_ginpostinglist/sql/test_ginpostinglist.sql index b8cab7a..107baf8 100644 --- a/src/test/modules/test_ginpostinglist/sql/test_ginpostinglist.sql +++ b/src/test/modules/test_ginpostinglist/sql/test_ginpostinglist.sql @@ -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(); -- 1.8.3.1