pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Typos in the code and README
55+ messages / 13 participants
[nested] [flat]

Commits from this thread:
  2026-01-06 ae28373602  Fix typo in planner.c
  2026-01-05 b85d5dc0e7  Fix meson build of snowball code.
  2026-01-05 7dc95cc3b9  Update to latest Snowball sources.
  2026-01-05 7d854bdc5b  Remove unneeded defines from pg_config.h.in
  2026-01-05 b8cfcb9e00  Fix typos and inconsistencies in code and comments
  2025-04-21 78eda9e264  Fix a few more duplicate words in comments
  2025-04-20 84fd3bc141  Fix a few duplicate words in comments
  2025-04-19 88e947136b  Fix typos and grammar in the code
  2025-01-01 11012c5037  Fix an assortment of spelling mistakes and typos
  2024-09-04 08b9b9e043 07b828e9d4  Fix inconsistent LWLock tranche name "CommitTsSLRU"
  2024-09-03 31a98934d1  Fix typos in code comments and test data
  2024-09-03 4236825197  Fix typos and grammar in code comments and docs
  2024-08-12 ffabb56c94  Fix a series of typos and outdated references
  2024-07-25 88e3da5658  pg_upgrade: Remove unused macro
  2024-07-25 cc59f9d0ff  pgcrypto: Remove unused binary from clean target
  2024-05-03 a42fc1c903  Fix an assortment of typos
  2024-04-28 310cd8ab38  Fix duplicated consecutive words in comments
  2024-04-19 f6e8451336  Remove unused function prototype
  2024-04-19 9c58bf1507  Fix incorrect parameter name in prototype
  2024-04-18 950d4a2cb1  Fix typos and duplicate words
* Typos in the code and README
@ 2024-04-11 13:05 Daniel Gustafsson <daniel@yesql.se>
  2024-04-11 13:21 ` Re: Typos in the code and README Andrew Dunstan <andrew@dunslane.net>
  2024-04-11 13:29 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  0 siblings, 3 replies; 55+ messages in thread

From: Daniel Gustafsson @ 2024-04-11 13:05 UTC (permalink / raw)
  To: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

Now that the tree has settled down a bit post-freeze I ran some tooling to
check spelling.  I was primarily interested in docs and README* which were
mostly free from simply typos, while the code had some in various comments and
one in code.  The attached fixes all that I came across (not cross-referenced
against ongoing reverts or any other fixup threads but will be before pushing
of course).

--
Daniel Gustafsson

Attachments:

v1-0001-Fix-typos.patch (application/octet-stream, 25.9K) download From 735f6574d77e0f3f8a2ff95ce4aa74f04db29541 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson <daniel@yesql.se> Date: Thu, 11 Apr 2024 14:27:35 +0200 Subject: [PATCH v1] Fix typos --- contrib/amcheck/expected/check_btree.out | 2 +- contrib/amcheck/sql/check_btree.sql | 2 +- src/backend/access/gin/ginbtree.c | 2 +- src/backend/access/nbtree/nbtutils.c | 2 +- src/backend/commands/copyfrom.c | 2 +- src/backend/commands/tablecmds.c | 5 +++-- src/backend/optimizer/path/pathkeys.c | 2 +- src/backend/optimizer/prep/prepunion.c | 2 +- src/backend/parser/parse_utilcmd.c | 4 ++-- src/backend/replication/walsender.c | 2 +- src/backend/storage/buffer/bufmgr.c | 2 +- src/backend/storage/lmgr/lock.c | 2 +- src/backend/storage/lmgr/proc.c | 2 +- src/backend/utils/adt/jsonpath_exec.c | 4 ++-- src/backend/utils/adt/selfuncs.c | 2 +- src/common/unicode_category.c | 2 +- src/include/access/tableam.h | 2 +- src/include/lib/radixtree.h | 8 ++++---- src/test/isolation/expected/temp-schema-cleanup.out | 4 ++-- src/test/isolation/specs/temp-schema-cleanup.spec | 2 +- src/test/modules/test_json_parser/README | 2 +- .../test_json_parser/test_json_parser_incremental.c | 4 ++-- src/test/modules/test_json_parser/test_json_parser_perf.c | 2 +- src/test/regress/expected/foreign_key.out | 2 +- src/test/regress/expected/publication.out | 4 ++-- src/test/regress/expected/tsdicts.out | 2 +- src/test/regress/sql/foreign_key.sql | 2 +- src/test/regress/sql/publication.sql | 4 ++-- src/test/regress/sql/tsdicts.sql | 2 +- src/test/subscription/t/004_sync.pl | 2 +- src/test/subscription/t/026_stats.pl | 2 +- 31 files changed, 42 insertions(+), 41 deletions(-) diff --git a/contrib/amcheck/expected/check_btree.out b/contrib/amcheck/expected/check_btree.out index cf8284fe12..e7fb5f5515 100644 --- a/contrib/amcheck/expected/check_btree.out +++ b/contrib/amcheck/expected/check_btree.out @@ -2,7 +2,7 @@ CREATE TABLE bttest_a(id int8); CREATE TABLE bttest_b(id int8); CREATE TABLE bttest_multi(id int8, data int8); CREATE TABLE delete_test_table (a bigint, b bigint, c bigint, d bigint); --- Stabalize tests +-- Stabilize tests ALTER TABLE bttest_a SET (autovacuum_enabled = false); ALTER TABLE bttest_b SET (autovacuum_enabled = false); ALTER TABLE bttest_multi SET (autovacuum_enabled = false); diff --git a/contrib/amcheck/sql/check_btree.sql b/contrib/amcheck/sql/check_btree.sql index 68bd71b064..0793dbfeeb 100644 --- a/contrib/amcheck/sql/check_btree.sql +++ b/contrib/amcheck/sql/check_btree.sql @@ -3,7 +3,7 @@ CREATE TABLE bttest_b(id int8); CREATE TABLE bttest_multi(id int8, data int8); CREATE TABLE delete_test_table (a bigint, b bigint, c bigint, d bigint); --- Stabalize tests +-- Stabilize tests ALTER TABLE bttest_a SET (autovacuum_enabled = false); ALTER TABLE bttest_b SET (autovacuum_enabled = false); ALTER TABLE bttest_multi SET (autovacuum_enabled = false); diff --git a/src/backend/access/gin/ginbtree.c b/src/backend/access/gin/ginbtree.c index 86f938686c..b7a5013896 100644 --- a/src/backend/access/gin/ginbtree.c +++ b/src/backend/access/gin/ginbtree.c @@ -766,7 +766,7 @@ ginFinishSplit(GinBtree btree, GinBtreeStack *stack, bool freestack, /* * An entry point to ginFinishSplit() that is used when we stumble upon an * existing incompletely split page in the tree, as opposed to completing a - * split that we just made outselves. The difference is that stack->buffer may + * split that we just made ourselves. The difference is that stack->buffer may * be merely share-locked on entry, and will be upgraded to exclusive mode. * * Note: Upgrading the lock momentarily releases it. Doing that in a scan diff --git a/src/backend/access/nbtree/nbtutils.c b/src/backend/access/nbtree/nbtutils.c index 2eff34c4aa..052f693138 100644 --- a/src/backend/access/nbtree/nbtutils.c +++ b/src/backend/access/nbtree/nbtutils.c @@ -4126,7 +4126,7 @@ _bt_checkkeys_look_ahead(IndexScanDesc scan, BTReadPageState *pstate, else { /* - * Failure -- "ahead" tuple is too far ahead (we were too aggresive). + * Failure -- "ahead" tuple is too far ahead (we were too aggressive). * * Reset the number of rechecks, and aggressively reduce the target * distance (we're much more aggressive here than we were when the diff --git a/src/backend/commands/copyfrom.c b/src/backend/commands/copyfrom.c index 9d2900041e..a99589c7d8 100644 --- a/src/backend/commands/copyfrom.c +++ b/src/backend/commands/copyfrom.c @@ -998,7 +998,7 @@ CopyFrom(CopyFromState cstate) cstate->escontext->error_occurred) { /* - * Soft error occured, skip this tuple and deal with error + * Soft error occurred, skip this tuple and deal with error * information according to ON_ERROR. */ if (cstate->opts.on_error == COPY_ON_ERROR_IGNORE) diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 8a98a0af48..fdc4917420 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -20888,7 +20888,8 @@ GetAttributeStorage(Oid atttypid, const char *storagemode) } /* - * Struct with context of new partition for insert rows from splited partition + * Struct with context of new partition for insert rows from partition which + * has been split. */ typedef struct SplitPartitionContext { @@ -21486,7 +21487,7 @@ ATExecMergePartitions(List **wqueue, AlteredTableInfo *tab, Relation rel, /* Create table for new partition, use partitioned table as model. */ if (isSameName) { - /* Create partition table with generated temparary name. */ + /* Create partition table with generated temporary name. */ sprintf(tmpRelName, "merge-%u-%X-tmp", RelationGetRelid(rel), MyProcPid); mergePartName = makeRangeVar(get_namespace_name(RelationGetNamespace(rel)), tmpRelName, -1); diff --git a/src/backend/optimizer/path/pathkeys.c b/src/backend/optimizer/path/pathkeys.c index 1d61881a6b..8b258cbef9 100644 --- a/src/backend/optimizer/path/pathkeys.c +++ b/src/backend/optimizer/path/pathkeys.c @@ -384,7 +384,7 @@ group_keys_reorder_by_pathkeys(List *pathkeys, List **group_pathkeys, * *group_pathkeys containing grouping pathkeys altogether with aggregate * pathkeys. If we process aggregate pathkeys we could get an invalid * result of get_sortgroupref_clause_noerr(), because their - * pathkey->pk_eclass->ec_sortref doesn't referece query targetlist. So, + * pathkey->pk_eclass->ec_sortref doesn't reference query targetlist. So, * we allocate a separate list of pathkeys for lookups. */ grouping_pathkeys = list_copy_head(*group_pathkeys, num_groupby_pathkeys); diff --git a/src/backend/optimizer/prep/prepunion.c b/src/backend/optimizer/prep/prepunion.c index afcb5c0f0f..75655ee43c 100644 --- a/src/backend/optimizer/prep/prepunion.c +++ b/src/backend/optimizer/prep/prepunion.c @@ -214,7 +214,7 @@ set_operation_ordered_results_useful(SetOperationStmt *setop) * * Returns a RelOptInfo for the subtree, as well as these output parameters: * *pTargetList: receives the fully-fledged tlist for the subtree's top plan - * *istrivial_tlist: true iif datatypes between parent and child match. + * *istrivial_tlist: true if datatypes between parent and child match. * * The pTargetList output parameter is mostly redundant with the pathtarget * of the returned RelOptInfo, but for the moment we need it because much of diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index ceba069905..6f2be56def 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -3451,7 +3451,7 @@ checkPartition(Relation rel, Oid partRelOid) /* * transformPartitionCmdForSplit - * Analyze the ALTER TABLLE ... SPLIT PARTITION command + * Analyze the ALTER TABLE ... SPLIT PARTITION command * * For each new partition sps->bound is set to the transformed value of bound. * Does checks for bounds of new partitions. @@ -3490,7 +3490,7 @@ transformPartitionCmdForSplit(CreateStmtContext *cxt, PartitionCmd *partcmd) /* * transformPartitionCmdForMerge - * Analyze the ALTER TABLLE ... MERGE PARTITIONS command + * Analyze the ALTER TABLE ... MERGE PARTITIONS command * * Does simple checks for merged partitions. Calculates bound of result * partition. diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index bc40c454de..9bf7c67f37 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -3493,7 +3493,7 @@ WalSndDone(WalSndSendDataCallback send_data) * Returns the latest point in WAL that has been safely flushed to disk. * This should only be called when in recovery. * - * This is called either by cascading walsender to find WAL postion to be sent + * This is called either by cascading walsender to find WAL position to be sent * to a cascaded standby or by slot synchronization operation to validate remote * slot's lsn before syncing it locally. * diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index 901b7230fb..49637284f9 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -1073,7 +1073,7 @@ PinBufferForBlock(Relation rel, /* * If there is no Relation it usually implies recovery and thus permanent, - * but we take an argmument because CreateAndCopyRelationData can reach us + * but we take an argument because CreateAndCopyRelationData can reach us * with only an SMgrRelation for an unlogged relation that we don't want * to flag with BM_PERMANENT. */ diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 5022a50dd7..5154353c84 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -1032,7 +1032,7 @@ LockAcquireExtended(const LOCKTAG *locktag, /* * Sleep till someone wakes me up. We do this even in the dontWait - * case, beause while trying to go to sleep, we may discover that we + * case, because while trying to go to sleep, we may discover that we * can acquire the lock immediately after all. */ diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index 4b830dc3c8..bd682dd810 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -1053,7 +1053,7 @@ AuxiliaryPidGetProc(int pid) * called, because it could be that when we try to find a position at which * to insert ourself into the wait queue, we discover that we must be inserted * ahead of everyone who wants a lock that conflict with ours. In that case, - * we get the lock immediately. Beause of this, it's sensible for this function + * we get the lock immediately. Because of this, it's sensible for this function * to have a dontWait argument, despite the name. * * The lock table's partition lock must be held at entry, and will be held diff --git a/src/backend/utils/adt/jsonpath_exec.c b/src/backend/utils/adt/jsonpath_exec.c index 103572ed93..ad6a5369d9 100644 --- a/src/backend/utils/adt/jsonpath_exec.c +++ b/src/backend/utils/adt/jsonpath_exec.c @@ -4200,7 +4200,7 @@ JsonTableSetDocument(TableFuncScanState *state, Datum value) } /* - * Evaluate a JsonTablePlan's jsonpath to get a new row pattren from + * Evaluate a JsonTablePlan's jsonpath to get a new row pattern from * the given context item */ static void @@ -4318,7 +4318,7 @@ JsonTablePlanScanNextRow(JsonTablePlanState *planstate) /* * Now fetch the nested plan's current row to be joined against the * parent row. Any further nested plans' paths will be re-evaluated - * reursively, level at a time, after setting each nested plan's + * recursively, level at a time, after setting each nested plan's * current row. */ (void) JsonTablePlanNextRow(planstate->nested); diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c index 35f8f306ee..5f5d7959d8 100644 --- a/src/backend/utils/adt/selfuncs.c +++ b/src/backend/utils/adt/selfuncs.c @@ -6968,7 +6968,7 @@ btcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, * btree scans, making the top-level scan look like a continuous scan * (as opposed to num_sa_scans-many primitive index scans). After * all, btree scans mostly work like that at runtime. However, such a - * scheme would badly bias genericcostestimate's simplistic appraoch + * scheme would badly bias genericcostestimate's simplistic approach * to calculating numIndexPages through prorating. * * Stick with the approach taken by non-native SAOP scans for now. diff --git a/src/common/unicode_category.c b/src/common/unicode_category.c index bece7334f5..359e82ec31 100644 --- a/src/common/unicode_category.c +++ b/src/common/unicode_category.c @@ -23,7 +23,7 @@ /* * Create bitmasks from pg_unicode_category values for efficient comparison of * multiple categories. For instance, PG_U_MN_MASK is a bitmask representing - * the general cateogry Mn; and PG_U_M_MASK represents general categories Mn, + * the general category Mn; and PG_U_M_MASK represents general categories Mn, * Me, and Mc. * * The number of Unicode General Categories should never grow, so a 32-bit diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h index d1cd71b7a1..5f7cdd0e2b 100644 --- a/src/include/access/tableam.h +++ b/src/include/access/tableam.h @@ -1872,7 +1872,7 @@ table_index_validate_scan(Relation table_rel, } /* - * table_relation_analyze - fill the infromation for a sampling statistics + * table_relation_analyze - fill the information for a sampling statistics * acquisition * * The pointer to a function that will collect sample rows from the table diff --git a/src/include/lib/radixtree.h b/src/include/lib/radixtree.h index dc4c00d38a..e780b8d323 100644 --- a/src/include/lib/radixtree.h +++ b/src/include/lib/radixtree.h @@ -64,7 +64,7 @@ * small enough. * * There are two other techniques described in the paper that are not - * impemented here: + * implemented here: * - path compression "...removes all inner nodes that have only a single child." * - lazy path expansion "...inner nodes are only created if they are required * to distinguish at least two leaf nodes." @@ -385,7 +385,7 @@ typedef struct RT_NODE /* * Number of children. uint8 is sufficient for all node kinds, because - * nodes shrink when this number gets lower than some thresold. Since + * nodes shrink when this number gets lower than some threshold. Since * node256 cannot possibly have zero children, we let the counter overflow * and we interpret zero as "256" for this node kind. */ @@ -1581,7 +1581,7 @@ RT_EXTEND_UP(RT_RADIX_TREE * tree, uint64 key) Assert(shift < target_shift); - /* Grow tree upwards until start shift can accomodate the key */ + /* Grow tree upwards until start shift can accommodate the key */ while (shift < target_shift) { RT_CHILD_PTR node; @@ -1869,7 +1869,7 @@ RT_CREATE(MemoryContext ctx) */ if (sizeof(RT_VALUE_TYPE) > sizeof(RT_PTR_ALLOC)) tree->leaf_context = SlabContextCreate(ctx, - RT_STR(RT_PREFIX) "radix_tree leaf contex", + RT_STR(RT_PREFIX) "radix_tree leaf context", RT_SLAB_BLOCK_SIZE(sizeof(RT_VALUE_TYPE)), sizeof(RT_VALUE_TYPE)); #endif /* !RT_VARLEN_VALUE_SIZE */ diff --git a/src/test/isolation/expected/temp-schema-cleanup.out b/src/test/isolation/expected/temp-schema-cleanup.out index 35b91d9e45..d10aee53a8 100644 --- a/src/test/isolation/expected/temp-schema-cleanup.out +++ b/src/test/isolation/expected/temp-schema-cleanup.out @@ -9,7 +9,7 @@ step s1_create_temp_objects: CREATE OR REPLACE FUNCTION pg_temp.long() RETURNS text LANGUAGE sql AS $body$ SELECT %L; $body$$outer$, (SELECT string_agg(g.i::text||':'||random()::text, '|') FROM generate_series(1, 100) g(i)))); - -- The above bug requirs function removal to happen after a catalog + -- The above bug requires function removal to happen after a catalog -- invalidation. dependency.c sorts objects in descending oid order so -- that newer objects are deleted before older objects, so create a -- table after. @@ -66,7 +66,7 @@ step s1_create_temp_objects: CREATE OR REPLACE FUNCTION pg_temp.long() RETURNS text LANGUAGE sql AS $body$ SELECT %L; $body$$outer$, (SELECT string_agg(g.i::text||':'||random()::text, '|') FROM generate_series(1, 100) g(i)))); - -- The above bug requirs function removal to happen after a catalog + -- The above bug requires function removal to happen after a catalog -- invalidation. dependency.c sorts objects in descending oid order so -- that newer objects are deleted before older objects, so create a -- table after. diff --git a/src/test/isolation/specs/temp-schema-cleanup.spec b/src/test/isolation/specs/temp-schema-cleanup.spec index a9417b7e90..72decba6cb 100644 --- a/src/test/isolation/specs/temp-schema-cleanup.spec +++ b/src/test/isolation/specs/temp-schema-cleanup.spec @@ -30,7 +30,7 @@ step s1_create_temp_objects { CREATE OR REPLACE FUNCTION pg_temp.long() RETURNS text LANGUAGE sql AS $body$ SELECT %L; $body$$outer$, (SELECT string_agg(g.i::text||':'||random()::text, '|') FROM generate_series(1, 100) g(i)))); - -- The above bug requirs function removal to happen after a catalog + -- The above bug requires function removal to happen after a catalog -- invalidation. dependency.c sorts objects in descending oid order so -- that newer objects are deleted before older objects, so create a -- table after. diff --git a/src/test/modules/test_json_parser/README b/src/test/modules/test_json_parser/README index 7e410db24b..b07b3e8799 100644 --- a/src/test/modules/test_json_parser/README +++ b/src/test/modules/test_json_parser/README @@ -11,7 +11,7 @@ This module contains two programs for testing the json parsers. - `test_json_parser_perf` is for speed testing both the standard recursive descent parser and the non-recursive incremental parser. If given the `-i` flag it uses the non-recursive parser, - otherwise the stardard parser. The remaining flags are the number of + otherwise the standard parser. The remaining flags are the number of parsing iterations and the file containing the input. Even when using the non-recursive parser, the input is passed to the parser in a single chunk. The results are thus comparable to those of the diff --git a/src/test/modules/test_json_parser/test_json_parser_incremental.c b/src/test/modules/test_json_parser/test_json_parser_incremental.c index c28db05647..383be7b888 100644 --- a/src/test/modules/test_json_parser/test_json_parser_incremental.c +++ b/src/test/modules/test_json_parser/test_json_parser_incremental.c @@ -8,10 +8,10 @@ * IDENTIFICATION * src/test/modules/test_json_parser/test_json_parser_incremental.c * - * This progam tests incremental parsing of json. The input is fed into + * This program tests incremental parsing of json. The input is fed into * the parser in very small chunks. In practice you would normally use * much larger chunks, but doing this makes it more likely that the - * full range of incement handling, especially in the lexer, is exercised. + * full range of increment handling, especially in the lexer, is exercised. * If the "-c SIZE" option is provided, that chunk size is used instead. * * The argument specifies the file containing the JSON input. diff --git a/src/test/modules/test_json_parser/test_json_parser_perf.c b/src/test/modules/test_json_parser/test_json_parser_perf.c index 517dc8529a..85b615a96e 100644 --- a/src/test/modules/test_json_parser/test_json_parser_perf.c +++ b/src/test/modules/test_json_parser/test_json_parser_perf.c @@ -8,7 +8,7 @@ * IDENTIFICATION * src/test/modules/test_json_parser/test_json_parser_perf.c * - * This progam tests either the standard (recursive descent) JSON parser + * This program tests either the standard (recursive descent) JSON parser * or the incremental (table driven) parser, but without breaking the input * into chunks in the latter case. Thus it can be used to compare the pure * parsing speed of the two parsers. If the "-i" option is used, then the diff --git a/src/test/regress/expected/foreign_key.out b/src/test/regress/expected/foreign_key.out index af2a878dd6..0b55167ac8 100644 --- a/src/test/regress/expected/foreign_key.out +++ b/src/test/regress/expected/foreign_key.out @@ -2734,7 +2734,7 @@ UPDATE fkpart10.tbl1 SET f1 = 2 WHERE f1 = 1; INSERT INTO fkpart10.tbl1 VALUES (0), (1); COMMIT; -- test that cross-partition updates correctly enforces the foreign key --- restriction (specifically testing INITIAILLY DEFERRED) +-- restriction (specifically testing INITIALLY DEFERRED) BEGIN; UPDATE fkpart10.tbl1 SET f1 = 3 WHERE f1 = 0; UPDATE fkpart10.tbl3 SET f1 = f1 * -1; diff --git a/src/test/regress/expected/publication.out b/src/test/regress/expected/publication.out index 0c5521d2aa..09a8d8221c 100644 --- a/src/test/regress/expected/publication.out +++ b/src/test/regress/expected/publication.out @@ -945,10 +945,10 @@ ALTER TABLE rf_tbl_abcd_part_pk ATTACH PARTITION rf_tbl_abcd_part_pk_1 FOR VALUE SET client_min_messages = 'ERROR'; CREATE PUBLICATION testpub6 FOR TABLE rf_tbl_abcd_pk (a, b); RESET client_min_messages; --- ok - (a,b) coverts all PK cols +-- ok - (a,b) covers all PK cols UPDATE rf_tbl_abcd_pk SET a = 1; ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_pk (a, b, c); --- ok - (a,b,c) coverts all PK cols +-- ok - (a,b,c) covers all PK cols UPDATE rf_tbl_abcd_pk SET a = 1; ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_pk (a); -- fail - "b" is missing from the column list diff --git a/src/test/regress/expected/tsdicts.out b/src/test/regress/expected/tsdicts.out index 4eff85da79..0bbf2ff4ca 100644 --- a/src/test/regress/expected/tsdicts.out +++ b/src/test/regress/expected/tsdicts.out @@ -689,7 +689,7 @@ CREATE TEXT SEARCH DICTIONARY tsdict_case ERROR: unrecognized Ispell parameter: "DictFile" -- Test grammar for configurations CREATE TEXT SEARCH CONFIGURATION dummy_tst (COPY=english); --- Overriden mapping change with duplicated tokens. +-- Overridden mapping change with duplicated tokens. ALTER TEXT SEARCH CONFIGURATION dummy_tst ALTER MAPPING FOR word, word WITH ispell; -- Not a token supported by the configuration's parser, fails. diff --git a/src/test/regress/sql/foreign_key.sql b/src/test/regress/sql/foreign_key.sql index 22e177f89b..f5e0938999 100644 --- a/src/test/regress/sql/foreign_key.sql +++ b/src/test/regress/sql/foreign_key.sql @@ -1943,7 +1943,7 @@ INSERT INTO fkpart10.tbl1 VALUES (0), (1); COMMIT; -- test that cross-partition updates correctly enforces the foreign key --- restriction (specifically testing INITIAILLY DEFERRED) +-- restriction (specifically testing INITIALLY DEFERRED) BEGIN; UPDATE fkpart10.tbl1 SET f1 = 3 WHERE f1 = 0; UPDATE fkpart10.tbl3 SET f1 = f1 * -1; diff --git a/src/test/regress/sql/publication.sql b/src/test/regress/sql/publication.sql index 8ba8036bfb..479d4f3264 100644 --- a/src/test/regress/sql/publication.sql +++ b/src/test/regress/sql/publication.sql @@ -603,10 +603,10 @@ ALTER TABLE rf_tbl_abcd_part_pk ATTACH PARTITION rf_tbl_abcd_part_pk_1 FOR VALUE SET client_min_messages = 'ERROR'; CREATE PUBLICATION testpub6 FOR TABLE rf_tbl_abcd_pk (a, b); RESET client_min_messages; --- ok - (a,b) coverts all PK cols +-- ok - (a,b) covers all PK cols UPDATE rf_tbl_abcd_pk SET a = 1; ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_pk (a, b, c); --- ok - (a,b,c) coverts all PK cols +-- ok - (a,b,c) covers all PK cols UPDATE rf_tbl_abcd_pk SET a = 1; ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_pk (a); -- fail - "b" is missing from the column list diff --git a/src/test/regress/sql/tsdicts.sql b/src/test/regress/sql/tsdicts.sql index 6a2b00369c..cf08410bb2 100644 --- a/src/test/regress/sql/tsdicts.sql +++ b/src/test/regress/sql/tsdicts.sql @@ -254,7 +254,7 @@ CREATE TEXT SEARCH DICTIONARY tsdict_case -- Test grammar for configurations CREATE TEXT SEARCH CONFIGURATION dummy_tst (COPY=english); --- Overriden mapping change with duplicated tokens. +-- Overridden mapping change with duplicated tokens. ALTER TEXT SEARCH CONFIGURATION dummy_tst ALTER MAPPING FOR word, word WITH ispell; -- Not a token supported by the configuration's parser, fails. diff --git a/src/test/subscription/t/004_sync.pl b/src/test/subscription/t/004_sync.pl index e077e255fc..a2d9462395 100644 --- a/src/test/subscription/t/004_sync.pl +++ b/src/test/subscription/t/004_sync.pl @@ -165,7 +165,7 @@ $node_subscriber->safe_psql('postgres', "DROP SUBSCRIPTION tap_sub"); # When DROP SUBSCRIPTION tries to drop the tablesync slot, the slot may not # have been created, which causes the slot to be created after the DROP -# SUSCRIPTION finishes. Such slots eventually get dropped at walsender exit +# SUBSCRIPTION finishes. Such slots eventually get dropped at walsender exit # time. So, to prevent being affected by such ephemeral tablesync slots, we # wait until all the slots have been cleaned. ok( $node_publisher->poll_query_until( diff --git a/src/test/subscription/t/026_stats.pl b/src/test/subscription/t/026_stats.pl index bac1cf3983..d1d68fad9a 100644 --- a/src/test/subscription/t/026_stats.pl +++ b/src/test/subscription/t/026_stats.pl @@ -271,7 +271,7 @@ is( $node_subscriber->safe_psql( my $sub2_oid = $node_subscriber->safe_psql($db, qq(SELECT oid FROM pg_subscription WHERE subname = '$sub2_name')); -# Diassociate the subscription 2 from its replication slot and drop it +# Disassociate the subscription 2 from its replication slot and drop it $node_subscriber->safe_psql( $db, qq( -- 2.39.3 (Apple Git-146) =
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
@ 2024-04-11 13:21 ` Andrew Dunstan <andrew@dunslane.net>
  2 siblings, 0 replies; 55+ messages in thread

From: Andrew Dunstan @ 2024-04-11 13:21 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>


On 2024-04-11 Th 09:05, Daniel Gustafsson wrote:
> Now that the tree has settled down a bit post-freeze I ran some tooling to
> check spelling.  I was primarily interested in docs and README* which were
> mostly free from simply typos, while the code had some in various comments and
> one in code.  The attached fixes all that I came across (not cross-referenced
> against ongoing reverts or any other fixup threads but will be before pushing
> of course).



I have these covered:


src/test/modules/test_json_parser/README                  | 2 +-
.../test_json_parser/test_json_parser_incremental.c       | 4 ++--
src/test/modules/test_json_parser/test_json_parser_perf.c | 2 +-


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com






^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
@ 2024-04-11 13:29 ` David Rowley <dgrowleyml@gmail.com>
  2024-04-11 13:37   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2 siblings, 1 reply; 55+ messages in thread

From: David Rowley @ 2024-04-11 13:29 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On Fri, 12 Apr 2024, 1:05 am Daniel Gustafsson, <daniel@yesql.se> wrote:

> Now that the tree has settled down a bit post-freeze I ran some tooling to
> check spelling.  I was primarily interested in docs and README* which were
> mostly free from simply typos, while the code had some in various comments
> and
> one in code.  The attached fixes all that I came across (not
> cross-referenced
> against ongoing reverts or any other fixup threads but will be before
> pushing
> of course).
>

I see you've corrected "iif" to "if". It should be "iff".

David

>

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-11 13:29 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2024-04-11 13:37   ` Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 20:55     ` Re: Typos in the code and README Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 55+ messages in thread

From: Daniel Gustafsson @ 2024-04-11 13:37 UTC (permalink / raw)
  To: David Rowley <dgrowleyml@gmail.com>; +Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

> On 11 Apr 2024, at 15:29, David Rowley <dgrowleyml@gmail.com> wrote:
> 
> On Fri, 12 Apr 2024, 1:05 am Daniel Gustafsson, <daniel@yesql.se <mailto:daniel@yesql.se>> wrote:
>> Now that the tree has settled down a bit post-freeze I ran some tooling to
>> check spelling.  I was primarily interested in docs and README* which were
>> mostly free from simply typos, while the code had some in various comments and
>> one in code.  The attached fixes all that I came across (not cross-referenced
>> against ongoing reverts or any other fixup threads but will be before pushing
>> of course).
> 
> 
> I see you've corrected "iif" to "if". It should be "iff".

Gotcha, will fix.  I opted for "if" due to recent threads where the use of
"iff" was discouraged due to not being commonly known, but that was in doc/ and
not code comments.

--
Daniel Gustafsson

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-11 13:29 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-11 13:37   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
@ 2024-04-12 20:55     ` Bruce Momjian <bruce@momjian.us>
  2024-04-12 20:58       ` Re: Typos in the code and README Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 55+ messages in thread

From: Bruce Momjian @ 2024-04-12 20:55 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On Thu, Apr 11, 2024 at 03:37:00PM +0200, Daniel Gustafsson wrote:
>     On 11 Apr 2024, at 15:29, David Rowley <dgrowleyml@gmail.com> wrote:
> 
>     On Fri, 12 Apr 2024, 1:05 am Daniel Gustafsson, <daniel@yesql.se> wrote:
> 
>         Now that the tree has settled down a bit post-freeze I ran some tooling
>         to
>         check spelling.  I was primarily interested in docs and README* which
>         were
>         mostly free from simply typos, while the code had some in various
>         comments and
>         one in code.  The attached fixes all that I came across (not
>         cross-referenced
>         against ongoing reverts or any other fixup threads but will be before
>         pushing
>         of course).
> 
> 
>     I see you've corrected "iif" to "if". It should be "iff".
> 
> 
> Gotcha, will fix.  I opted for "if" due to recent threads where the use of
> "iff" was discouraged due to not being commonly known, but that was in doc/ and
> not code comments.

I actually agree "iff" is just not clear enough.  "Iff" stands for "if
and only if" and maybe should be spelled out that way.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-11 13:29 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-11 13:37   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 20:55     ` Re: Typos in the code and README Bruce Momjian <bruce@momjian.us>
@ 2024-04-12 20:58       ` Bruce Momjian <bruce@momjian.us>
  0 siblings, 0 replies; 55+ messages in thread

From: Bruce Momjian @ 2024-04-12 20:58 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On Fri, Apr 12, 2024 at 04:55:16PM -0400, Bruce Momjian wrote:
> On Thu, Apr 11, 2024 at 03:37:00PM +0200, Daniel Gustafsson wrote:
> >     On 11 Apr 2024, at 15:29, David Rowley <dgrowleyml@gmail.com> wrote:
> > 
> >     On Fri, 12 Apr 2024, 1:05 am Daniel Gustafsson, <daniel@yesql.se> wrote:
> > 
> >         Now that the tree has settled down a bit post-freeze I ran some tooling
> >         to
> >         check spelling.  I was primarily interested in docs and README* which
> >         were
> >         mostly free from simply typos, while the code had some in various
> >         comments and
> >         one in code.  The attached fixes all that I came across (not
> >         cross-referenced
> >         against ongoing reverts or any other fixup threads but will be before
> >         pushing
> >         of course).
> > 
> > 
> >     I see you've corrected "iif" to "if". It should be "iff".
> > 
> > 
> > Gotcha, will fix.  I opted for "if" due to recent threads where the use of
> > "iff" was discouraged due to not being commonly known, but that was in doc/ and
> > not code comments.
> 
> I actually agree "iff" is just not clear enough.  "Iff" stands for "if
> and only if" and maybe should be spelled out that way.

Just to clarify, I think "if and only if" means "if A then B" and B can
only happen if A happens, meaning there are not other cases where B can
happen.  This latter part is what disinguishes "iff" from "if".

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
@ 2024-04-12 21:15 ` Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2 siblings, 1 reply; 55+ messages in thread

From: Heikki Linnakangas @ 2024-04-12 21:15 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On 11/04/2024 16:05, Daniel Gustafsson wrote:
> Now that the tree has settled down a bit post-freeze I ran some tooling to
> check spelling.  I was primarily interested in docs and README* which were
> mostly free from simply typos, while the code had some in various comments and
> one in code.  The attached fixes all that I came across (not cross-referenced
> against ongoing reverts or any other fixup threads but will be before pushing
> of course).

Here's a few more. I've accumulate these over the past couple of months, 
keeping them stashed in a branch, adding to it whenever I've spotted a 
minor typo while reading the code.

-- 
Heikki Linnakangas
Neon (https://neon.tech)

Attachments: download all (2 files, .tar.gz)

0001-fix-typos.patch (text/x-patch, 13.1K) download From 5f531b719c176b2f316b6341fa062af508ed2e10 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas <heikki.linnakangas@iki.fi> Date: Sun, 7 Apr 2024 22:34:23 +0300 Subject: [PATCH 1/2] fix typos --- doc/src/sgml/maintenance.sgml | 2 +- doc/src/sgml/meson.build | 2 +- src/backend/access/rmgrdesc/xactdesc.c | 2 +- src/backend/catalog/system_functions.sql | 2 +- src/backend/commands/amcmds.c | 2 +- src/backend/commands/tablecmds.c | 4 ++-- src/backend/postmaster/walsummarizer.c | 2 +- src/backend/replication/logical/slotsync.c | 2 +- src/backend/statistics/dependencies.c | 4 ++-- src/backend/utils/adt/multirangetypes.c | 2 +- src/backend/utils/mmgr/aset.c | 4 ++-- src/backend/utils/mmgr/generation.c | 4 ++-- src/bin/pg_basebackup/bbstreamer_tar.c | 2 +- src/bin/pg_combinebackup/pg_combinebackup.c | 2 +- src/interfaces/libpq/fe-secure-openssl.c | 2 +- src/test/modules/test_resowner/test_resowner_many.c | 2 +- src/test/regress/expected/aggregates.out | 2 +- src/test/regress/sql/aggregates.sql | 2 +- 18 files changed, 22 insertions(+), 22 deletions(-) diff --git a/doc/src/sgml/maintenance.sgml b/doc/src/sgml/maintenance.sgml index 2bfa05b8bc..0be90bdc7e 100644 --- a/doc/src/sgml/maintenance.sgml +++ b/doc/src/sgml/maintenance.sgml @@ -802,7 +802,7 @@ HINT: Execute a database-wide VACUUM in that database. <para> Similar to the XID case, if autovacuum fails to clear old MXIDs from a table, the system will begin to emit warning messages when the database's oldest MXIDs reach forty - million transactions from the wraparound point. And, just as an the XID case, if these + million transactions from the wraparound point. And, just as in the XID case, if these warnings are ignored, the system will refuse to generate new MXIDs once there are fewer than three million left until wraparound. </para> diff --git a/doc/src/sgml/meson.build b/doc/src/sgml/meson.build index 3a4b47d387..e418de83a7 100644 --- a/doc/src/sgml/meson.build +++ b/doc/src/sgml/meson.build @@ -207,7 +207,7 @@ if docs_dep.found() alias_target('man', man) alias_target('install-man', install_doc_man) - # built and installed as part of the the docs target + # built and installed as part of the docs target installdocs += install_doc_man docs += man endif diff --git a/src/backend/access/rmgrdesc/xactdesc.c b/src/backend/access/rmgrdesc/xactdesc.c index 41b842d80e..dccca201e0 100644 --- a/src/backend/access/rmgrdesc/xactdesc.c +++ b/src/backend/access/rmgrdesc/xactdesc.c @@ -25,7 +25,7 @@ * Parse the WAL format of an xact commit and abort records into an easier to * understand format. * - * This routines are in xactdesc.c because they're accessed in backend (when + * These routines are in xactdesc.c because they're accessed in backend (when * replaying WAL) and frontend (pg_waldump) code. This file is the only xact * specific one shared between both. They're complicated enough that * duplication would be bothersome. diff --git a/src/backend/catalog/system_functions.sql b/src/backend/catalog/system_functions.sql index fe2bb50f46..ae099e328c 100644 --- a/src/backend/catalog/system_functions.sql +++ b/src/backend/catalog/system_functions.sql @@ -5,7 +5,7 @@ * * src/backend/catalog/system_functions.sql * - * This file redefines certain built-in functions that it's impractical + * This file redefines certain built-in functions that are impractical * to fully define in pg_proc.dat. In most cases that's because they use * SQL-standard function bodies and/or default expressions. The node * tree representations of those are too unreadable, platform-dependent, diff --git a/src/backend/commands/amcmds.c b/src/backend/commands/amcmds.c index 10e386288a..aaa0f9a1dc 100644 --- a/src/backend/commands/amcmds.c +++ b/src/backend/commands/amcmds.c @@ -167,7 +167,7 @@ get_index_am_oid(const char *amname, bool missing_ok) /* * get_table_am_oid - given an access method name, look up its OID - * and verify it corresponds to an table AM. + * and verify it corresponds to a table AM. */ Oid get_table_am_oid(const char *amname, bool missing_ok) diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index e344f2e363..36080a2383 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -5687,7 +5687,7 @@ ATParseTransformCmd(List **wqueue, AlteredTableInfo *tab, Relation rel, case AT_AddIndex: /* - * A primary key on a inheritance parent needs supporting NOT + * A primary key on an inheritance parent needs supporting NOT * NULL constraint on its children; enqueue commands to create * those or mark them inherited if they already exist. */ @@ -20216,7 +20216,7 @@ ATExecDetachPartitionFinalize(Relation rel, RangeVar *name) * DetachAddConstraintIfNeeded * Subroutine for ATExecDetachPartition. Create a constraint that * takes the place of the partition constraint, but avoid creating - * a dupe if an constraint already exists which implies the needed + * a dupe if a constraint already exists which implies the needed * constraint. */ static void diff --git a/src/backend/postmaster/walsummarizer.c b/src/backend/postmaster/walsummarizer.c index 0cd5080fa7..72f6c04478 100644 --- a/src/backend/postmaster/walsummarizer.c +++ b/src/backend/postmaster/walsummarizer.c @@ -108,7 +108,7 @@ static WalSummarizerData *WalSummarizerCtl; /* * When we reach end of WAL and need to read more, we sleep for a number of - * milliseconds that is a integer multiple of MS_PER_SLEEP_QUANTUM. This is + * milliseconds that is an integer multiple of MS_PER_SLEEP_QUANTUM. This is * the multiplier. It should vary between 1 and MAX_SLEEP_QUANTA, depending * on system activity. See summarizer_wait_for_wal() for how we adjust this. */ diff --git a/src/backend/replication/logical/slotsync.c b/src/backend/replication/logical/slotsync.c index bda0de52db..cb39adcd0e 100644 --- a/src/backend/replication/logical/slotsync.c +++ b/src/backend/replication/logical/slotsync.c @@ -88,7 +88,7 @@ * overwrites. * * The 'last_start_time' is needed by postmaster to start the slot sync worker - * once per SLOTSYNC_RESTART_INTERVAL_SEC. In cases where a immediate restart + * once per SLOTSYNC_RESTART_INTERVAL_SEC. In cases where an immediate restart * is expected (e.g., slot sync GUCs change), slot sync worker will reset * last_start_time before exiting, so that postmaster can start the worker * without waiting for SLOTSYNC_RESTART_INTERVAL_SEC. diff --git a/src/backend/statistics/dependencies.c b/src/backend/statistics/dependencies.c index 5eda06839e..8d01a93b30 100644 --- a/src/backend/statistics/dependencies.c +++ b/src/backend/statistics/dependencies.c @@ -794,7 +794,7 @@ dependency_is_compatible_clause(Node *clause, Index relid, AttrNumber *attnum) } else if (IsA(clause, ScalarArrayOpExpr)) { - /* If it's an scalar array operator, check for Var IN Const. */ + /* If it's a scalar array operator, check for Var IN Const. */ ScalarArrayOpExpr *expr = (ScalarArrayOpExpr *) clause; /* @@ -1222,7 +1222,7 @@ dependency_is_compatible_expression(Node *clause, Index relid, List *statlist, N } else if (IsA(clause, ScalarArrayOpExpr)) { - /* If it's an scalar array operator, check for Var IN Const. */ + /* If it's a scalar array operator, check for Var IN Const. */ ScalarArrayOpExpr *expr = (ScalarArrayOpExpr *) clause; /* diff --git a/src/backend/utils/adt/multirangetypes.c b/src/backend/utils/adt/multirangetypes.c index 8f12c953ca..558c6c18c3 100644 --- a/src/backend/utils/adt/multirangetypes.c +++ b/src/backend/utils/adt/multirangetypes.c @@ -330,7 +330,7 @@ multirange_out(PG_FUNCTION_ARGS) } /* - * Binary representation: First a int32-sized count of ranges, followed by + * Binary representation: First an int32-sized count of ranges, followed by * ranges in their native binary representation. */ Datum diff --git a/src/backend/utils/mmgr/aset.c b/src/backend/utils/mmgr/aset.c index 751cc3408c..dede30dd86 100644 --- a/src/backend/utils/mmgr/aset.c +++ b/src/backend/utils/mmgr/aset.c @@ -979,8 +979,8 @@ AllocSetAlloc(MemoryContext context, Size size, int flags) Assert(set->blocks != NULL); /* - * If requested size exceeds maximum for chunks we hand the the request - * off to AllocSetAllocLarge(). + * If requested size exceeds maximum for chunks we hand the request off to + * AllocSetAllocLarge(). */ if (size > set->allocChunkLimit) return AllocSetAllocLarge(context, size, flags); diff --git a/src/backend/utils/mmgr/generation.c b/src/backend/utils/mmgr/generation.c index 5d81af1f94..b858b8d0f7 100644 --- a/src/backend/utils/mmgr/generation.c +++ b/src/backend/utils/mmgr/generation.c @@ -541,8 +541,8 @@ GenerationAlloc(MemoryContext context, Size size, int flags) #endif /* - * If requested size exceeds maximum for chunks we hand the the request - * off to GenerationAllocLarge(). + * If requested size exceeds maximum for chunks we hand the request off to + * GenerationAllocLarge(). */ if (chunk_size > set->allocChunkLimit) return GenerationAllocLarge(context, size, flags); diff --git a/src/bin/pg_basebackup/bbstreamer_tar.c b/src/bin/pg_basebackup/bbstreamer_tar.c index a778e620cc..dec71ea65b 100644 --- a/src/bin/pg_basebackup/bbstreamer_tar.c +++ b/src/bin/pg_basebackup/bbstreamer_tar.c @@ -345,7 +345,7 @@ bbstreamer_tar_parser_free(bbstreamer *streamer) } /* - * Create an bbstreamer that can generate a tar archive. + * Create a bbstreamer that can generate a tar archive. * * This is intended to be usable either for generating a brand-new tar archive * or for modifying one on the fly. The input should be a series of typed diff --git a/src/bin/pg_combinebackup/pg_combinebackup.c b/src/bin/pg_combinebackup/pg_combinebackup.c index 2788c78fdd..08ef397a67 100644 --- a/src/bin/pg_combinebackup/pg_combinebackup.c +++ b/src/bin/pg_combinebackup/pg_combinebackup.c @@ -1156,7 +1156,7 @@ remember_to_cleanup_directory(char *target_path, bool rmtopdir) } /* - * Empty out the list of directories scheduled for cleanup a exit. + * Empty out the list of directories scheduled for cleanup at exit. * * We want to remove the output directories only on a failure, so call this * function when we know that the operation has succeeded. diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c index c98cfa6084..e7a4d006e1 100644 --- a/src/interfaces/libpq/fe-secure-openssl.c +++ b/src/interfaces/libpq/fe-secure-openssl.c @@ -1655,7 +1655,7 @@ pgtls_close(PGconn *conn) { /* * In the non-SSL case, just remove the crypto callbacks if the - * connection has then loaded. This code path has no dependency on + * connection has them loaded. This code path has no dependency on * any pending SSL calls. */ if (conn->crypto_loaded) diff --git a/src/test/modules/test_resowner/test_resowner_many.c b/src/test/modules/test_resowner/test_resowner_many.c index 4722c66267..7808c9e5df 100644 --- a/src/test/modules/test_resowner/test_resowner_many.c +++ b/src/test/modules/test_resowner/test_resowner_many.c @@ -196,7 +196,7 @@ GetTotalResourceCount(ManyTestResourceKind *kinds, int nkinds) * Remember lots of resources, belonging to 'nkinds' different resource types * with different priorities. Then forget some of them, and finally, release * the resource owner. We use a custom resource type that performs various - * sanity checks to verify that all the the resources are released, and in the + * sanity checks to verify that all the resources are released, and in the * correct order. */ PG_FUNCTION_INFO_V1(test_resowner_many); diff --git a/src/test/regress/expected/aggregates.out b/src/test/regress/expected/aggregates.out index 50695d83a2..56c361ccef 100644 --- a/src/test/regress/expected/aggregates.out +++ b/src/test/regress/expected/aggregates.out @@ -2889,7 +2889,7 @@ GROUP BY c1.w, c1.z; RESET enable_nestloop; RESET enable_hashjoin; DROP TABLE group_agg_pk; --- Test the case where the the ordering of scan matches the ordering within the +-- Test the case where the ordering of the scan matches the ordering within the -- aggregate but cannot be found in the group-by list CREATE TABLE agg_sort_order (c1 int PRIMARY KEY, c2 int); CREATE UNIQUE INDEX agg_sort_order_c2_idx ON agg_sort_order(c2); diff --git a/src/test/regress/sql/aggregates.sql b/src/test/regress/sql/aggregates.sql index 2905848ead..d28338ba3d 100644 --- a/src/test/regress/sql/aggregates.sql +++ b/src/test/regress/sql/aggregates.sql @@ -1257,7 +1257,7 @@ RESET enable_nestloop; RESET enable_hashjoin; DROP TABLE group_agg_pk; --- Test the case where the the ordering of scan matches the ordering within the +-- Test the case where the ordering of the scan matches the ordering within the -- aggregate but cannot be found in the group-by list CREATE TABLE agg_sort_order (c1 int PRIMARY KEY, c2 int); CREATE UNIQUE INDEX agg_sort_order_c2_idx ON agg_sort_order(c2); -- 2.39.2
0002-fix-func-name.patch (text/x-patch, 798B) download From f225794bb3e9bdb11821574e6750c4e92a9e29df Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas <heikki.linnakangas@iki.fi> Date: Mon, 8 Apr 2024 03:00:53 +0300 Subject: [PATCH 2/2] fix func name --- src/interfaces/libpq/fe-secure-openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c index e7a4d006e1..7cbb11a485 100644 --- a/src/interfaces/libpq/fe-secure-openssl.c +++ b/src/interfaces/libpq/fe-secure-openssl.c @@ -1587,7 +1587,7 @@ open_client_SSL(PGconn *conn) /* * We already checked the server certificate in initialize_SSL() using - * SSL_CTX_set_verify(), if root.crt exists. + * SSL_set_verify(), if root.crt exists. */ /* get server certificate */ -- 2.39.2
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
@ 2024-04-12 21:17   ` Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  0 siblings, 1 reply; 55+ messages in thread

From: Daniel Gustafsson @ 2024-04-12 21:17 UTC (permalink / raw)
  To: Heikki Linnakangas <hlinnaka@iki.fi>; +Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

> On 12 Apr 2024, at 23:15, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
> 
> On 11/04/2024 16:05, Daniel Gustafsson wrote:
>> Now that the tree has settled down a bit post-freeze I ran some tooling to
>> check spelling.  I was primarily interested in docs and README* which were
>> mostly free from simply typos, while the code had some in various comments and
>> one in code.  The attached fixes all that I came across (not cross-referenced
>> against ongoing reverts or any other fixup threads but will be before pushing
>> of course).
> 
> Here's a few more. I've accumulate these over the past couple of months, keeping them stashed in a branch, adding to it whenever I've spotted a minor typo while reading the code.

Nice, let's lot all these together.

--
Daniel Gustafsson






^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
@ 2024-04-14 11:19     ` David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  0 siblings, 1 reply; 55+ messages in thread

From: David Rowley @ 2024-04-14 11:19 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On Sat, 13 Apr 2024 at 09:17, Daniel Gustafsson <daniel@yesql.se> wrote:
>
> > On 12 Apr 2024, at 23:15, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
> > Here's a few more. I've accumulate these over the past couple of months, keeping them stashed in a branch, adding to it whenever I've spotted a minor typo while reading the code.
>
> Nice, let's lot all these together.

Here are a few additional ones to add to that.

Found with a manual trawl through git grep -E
'\b([a-zA-Z]{2,}[^long|^that])\s+\1\b' -- ':!*.po' ':!*.dat'

David

Attachments:

dedup_words.patch (text/plain, 8.1K) download diff --git a/contrib/amcheck/verify_nbtree.c b/contrib/amcheck/verify_nbtree.c index f71f1854e0..20da4a46ba 100644 --- a/contrib/amcheck/verify_nbtree.c +++ b/contrib/amcheck/verify_nbtree.c @@ -3036,7 +3036,7 @@ bt_normalize_tuple(BtreeCheckState *state, IndexTuple itup) * In the heap, tuples may contain short varlena datums with both 1B * header and 4B headers. But the corresponding index tuple should always * have such varlena's with 1B headers. So, if there is a short varlena - * with 4B header, we need to convert it for for fingerprinting. + * with 4B header, we need to convert it for fingerprinting. * * Note that we rely on deterministic index_form_tuple() TOAST compression * of normalized input. diff --git a/src/backend/access/nbtree/nbtutils.c b/src/backend/access/nbtree/nbtutils.c index 2eff34c4aa..725811034f 100644 --- a/src/backend/access/nbtree/nbtutils.c +++ b/src/backend/access/nbtree/nbtutils.c @@ -1756,7 +1756,7 @@ _bt_start_prim_scan(IndexScanDesc scan, ScanDirection dir) * * (The rules are the same for backwards scans, except that the operators are * flipped: just replace the precondition's >= operator with a <=, and the - * postcondition's <= operator with with a >=. In other words, just swap the + * postcondition's <= operator with a >=. In other words, just swap the * precondition with the postcondition.) * * We also deal with "advancing" non-required arrays here. Callers whose diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c index c0c49b0a0b..af3b1a90d2 100644 --- a/src/backend/partitioning/partbounds.c +++ b/src/backend/partitioning/partbounds.c @@ -5145,7 +5145,7 @@ get_partition_bound_spec(Oid partOid, RangeVar *name) * the first of new partitions) then lower bound of "spec" should be equal (or * greater than or equal in case defaultPart=true) to lower bound of split * partition. If last=true (this means that "spec" is the last of new - * partitions) then upper bound of of "spec" should be equal (or less than or + * partitions) then upper bound of "spec" should be equal (or less than or * equal in case defaultPart=true) to upper bound of split partition. * * parent: partitioned table @@ -5244,7 +5244,7 @@ check_partition_bounds_for_split_range(Relation parent, false, split_upper); /* - * Upper bound of of "spec" should be equal (or less than or equal + * Upper bound of "spec" should be equal (or less than or equal * in case defaultPart=true) to upper bound of split partition. */ if ((!defaultPart && cmpval) || (defaultPart && cmpval > 0)) diff --git a/src/backend/storage/aio/read_stream.c b/src/backend/storage/aio/read_stream.c index f54dacdd91..634cf4f0d1 100644 --- a/src/backend/storage/aio/read_stream.c +++ b/src/backend/storage/aio/read_stream.c @@ -541,9 +541,9 @@ read_stream_begin_relation(int flags, stream->distance = 1; /* - * Since we always always access the same relation, we can initialize - * parts of the ReadBuffersOperation objects and leave them that way, to - * avoid wasting CPU cycles writing to them for each read. + * Since we always access the same relation, we can initialize parts of + * the ReadBuffersOperation objects and leave them that way, to avoid + * wasting CPU cycles writing to them for each read. */ for (int i = 0; i < max_ios; ++i) { diff --git a/src/backend/utils/mmgr/bump.c b/src/backend/utils/mmgr/bump.c index 449bd29344..26d2907fb7 100644 --- a/src/backend/utils/mmgr/bump.c +++ b/src/backend/utils/mmgr/bump.c @@ -501,8 +501,8 @@ BumpAlloc(MemoryContext context, Size size, int flags) #endif /* - * If requested size exceeds maximum for chunks we hand the the request - * off to BumpAllocLarge(). + * If requested size exceeds maximum for chunks we hand the request off to + * BumpAllocLarge(). */ if (chunk_size > set->allocChunkLimit) return BumpAllocLarge(context, size, flags); diff --git a/src/bin/pg_combinebackup/reconstruct.c b/src/bin/pg_combinebackup/reconstruct.c index 15f62c18df..d481a5c565 100644 --- a/src/bin/pg_combinebackup/reconstruct.c +++ b/src/bin/pg_combinebackup/reconstruct.c @@ -756,7 +756,7 @@ write_block(int fd, char *output_filename, } /* - * Read a block of data (BLCKSZ bytes) into the the buffer. + * Read a block of data (BLCKSZ bytes) into the buffer. */ static void read_block(rfile *s, off_t off, uint8 *buffer) diff --git a/src/bin/pg_upgrade/t/004_subscription.pl b/src/bin/pg_upgrade/t/004_subscription.pl index 48918e8c29..a038928fe7 100644 --- a/src/bin/pg_upgrade/t/004_subscription.pl +++ b/src/bin/pg_upgrade/t/004_subscription.pl @@ -241,7 +241,7 @@ my $tab_upgraded2_oid = $old_sub->safe_psql('postgres', $old_sub->stop; -# Change configuration so that initial table sync sync does not get started +# Change configuration so that initial table sync does not get started # automatically $new_sub->append_conf('postgresql.conf', "max_logical_replication_workers = 0"); diff --git a/src/include/access/heapam_xlog.h b/src/include/access/heapam_xlog.h index 551a0370aa..839f74d768 100644 --- a/src/include/access/heapam_xlog.h +++ b/src/include/access/heapam_xlog.h @@ -354,9 +354,9 @@ typedef struct xlhp_freeze_plan * * The backup block's data contains an array of xlhp_freeze_plan structs (with * nplans elements). The individual item offsets are located in an array at - * the end of the entire record with with nplans * (each plan's ntuples) - * members. Those offsets are in the same order as the plans. The REDO - * routine uses the offsets to freeze the corresponding heap tuples. + * the end of the entire record with nplans * (each plan's ntuples) members + * Those offsets are in the same order as the plans. The REDO routine uses + * the offsets to freeze the corresponding heap tuples. * * (As of PostgreSQL 17, XLOG_HEAP2_PRUNE_VACUUM_SCAN records replace the * separate XLOG_HEAP2_FREEZE_PAGE records.) diff --git a/src/include/common/hashfn_unstable.h b/src/include/common/hashfn_unstable.h index 7b647470ab..0adb0f82f9 100644 --- a/src/include/common/hashfn_unstable.h +++ b/src/include/common/hashfn_unstable.h @@ -73,7 +73,7 @@ * * For longer or variable-length input, fasthash_accum() is a more * flexible, but more verbose method. The standalone functions use this - * internally, so see fasthash64() for an an example of this. + * internally, so see fasthash64() for an example of this. * * After all inputs have been mixed in, finalize the hash: * diff --git a/src/test/regress/expected/copy.out b/src/test/regress/expected/copy.out index b48365ec98..44114089a6 100644 --- a/src/test/regress/expected/copy.out +++ b/src/test/regress/expected/copy.out @@ -276,8 +276,8 @@ CREATE TABLE parted_si_p_even PARTITION OF parted_si FOR VALUES IN (0); CREATE TABLE parted_si_p_odd PARTITION OF parted_si FOR VALUES IN (1); -- Test that bulk relation extension handles reusing a single BulkInsertState -- across partitions. Without the fix applied, this reliably reproduces --- #18130 unless shared_buffers is extremely small (preventing any use use of --- bulk relation extension). See +-- #18130 unless shared_buffers is extremely small (preventing any use of bulk +-- relation extension). See -- https://postgr.es/m/18130-7a86a7356a75209d%40postgresql.org -- https://postgr.es/m/257696.1695670946%40sss.pgh.pa.us \set filename :abs_srcdir '/data/desc.data' diff --git a/src/test/regress/sql/copy.sql b/src/test/regress/sql/copy.sql index 43d2e906dd..e2dd24cb35 100644 --- a/src/test/regress/sql/copy.sql +++ b/src/test/regress/sql/copy.sql @@ -306,8 +306,8 @@ CREATE TABLE parted_si_p_odd PARTITION OF parted_si FOR VALUES IN (1); -- Test that bulk relation extension handles reusing a single BulkInsertState -- across partitions. Without the fix applied, this reliably reproduces --- #18130 unless shared_buffers is extremely small (preventing any use use of --- bulk relation extension). See +-- #18130 unless shared_buffers is extremely small (preventing any use of bulk +-- relation extension). See -- https://postgr.es/m/18130-7a86a7356a75209d%40postgresql.org -- https://postgr.es/m/257696.1695670946%40sss.pgh.pa.us \set filename :abs_srcdir '/data/desc.data'
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2024-04-15 12:25       ` Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 08:28         ` Re: Typos in the code and README Richard Guo <guofenglinux@gmail.com>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  0 siblings, 2 replies; 55+ messages in thread

From: Daniel Gustafsson @ 2024-04-15 12:25 UTC (permalink / raw)
  To: David Rowley <dgrowleyml@gmail.com>; +Cc: Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Alexander Lakhin <exclusion@gmail.com>

> On 14 Apr 2024, at 13:19, David Rowley <dgrowleyml@gmail.com> wrote:
> 
> On Sat, 13 Apr 2024 at 09:17, Daniel Gustafsson <daniel@yesql.se> wrote:
>> 
>>> On 12 Apr 2024, at 23:15, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
>>> Here's a few more. I've accumulate these over the past couple of months, keeping them stashed in a branch, adding to it whenever I've spotted a minor typo while reading the code.
>> 
>> Nice, let's lot all these together.
> 
> Here are a few additional ones to add to that.

Thanks.  Collecting all the ones submitted here, as well as a few submitted
off-list by Alexander, the patch is now a 3-part patchset of cleanups:

0001 contains the typos and duplicate words fixups, 0002 fixes a parameter with
the wrong name in the prototype and 0003 removes a leftover prototype which was
accidentally left in a refactoring.

--
Daniel Gustafsson

Attachments: download all (3 files, .tar.gz)

v2-0003-Remove-unused-function-prototype.patch (application/octet-stream, 1.1K) download From 0179eb26269232832888d5a4b596af9cf1f7bb8b Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson <daniel@yesql.se> Date: Mon, 15 Apr 2024 14:07:58 +0200 Subject: [PATCH v2 3/3] Remove unused function prototype Commit aafc05de1bf5 removed StartSlotSyncWorker() but mistakenly left the prototype in slotsync.h. Fix by removing. Reported-by: Alexander Lakhin <exclusion@gmail.com> Discussion: https://postgr.es/m/3F577953-A29E-4722-98AD-2DA9EFF2CBB8@yesql.se --- src/include/replication/slotsync.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/include/replication/slotsync.h b/src/include/replication/slotsync.h index 61e154b31b..e03c2a005a 100644 --- a/src/include/replication/slotsync.h +++ b/src/include/replication/slotsync.h @@ -27,7 +27,6 @@ extern char *CheckAndGetDbnameFromConninfo(void); extern bool ValidateSlotSyncParams(int elevel); extern void ReplSlotSyncWorkerMain(char *startup_data, size_t startup_data_len) pg_attribute_noreturn(); -extern int StartSlotSyncWorker(void); extern void ShutDownSlotSync(void); extern bool SlotSyncWorkerCanRestart(void); -- 2.39.3 (Apple Git-146) =
v2-0002-Fix-incorrect-parameter-name-in-prototype.patch (application/octet-stream, 1.3K) download From cd154d3285b2f4f1942f308fa087b79e0a2bdcaa Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson <daniel@yesql.se> Date: Mon, 15 Apr 2024 14:05:45 +0200 Subject: [PATCH v2 2/3] Fix incorrect parameter name in prototype The function declaration for select_next_encryption_method use the variable name have_valid_connection, so fix the prototype in the header to match that. Reported-by: Alexander Lakhin <exclusion@gmail.com> Discussion: https://postgr.es/m/3F577953-A29E-4722-98AD-2DA9EFF2CBB8@yesql.se --- src/interfaces/libpq/fe-connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 9db1700ffb..ec20e3f3a9 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -397,7 +397,7 @@ static bool init_allowed_encryption_methods(PGconn *conn); static int encryption_negotiation_failed(PGconn *conn); #endif static bool connection_failed(PGconn *conn); -static bool select_next_encryption_method(PGconn *conn, bool negotiation_failure); +static bool select_next_encryption_method(PGconn *conn, bool have_valid_connection); static PGPing internal_ping(PGconn *conn); static void pqFreeCommandQueue(PGcmdQueueEntry *queue); static bool fillPGconn(PGconn *conn, PQconninfoOption *connOptions); -- 2.39.3 (Apple Git-146) =
v2-0001-Fix-typos-and-duplicate-words-in-comments.patch (application/octet-stream, 54.9K) download From 9722afdb66c92eba4d30dbe3bc30c9017707bb06 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson <daniel@yesql.se> Date: Thu, 11 Apr 2024 14:27:35 +0200 Subject: [PATCH v2 1/3] Fix typos and duplicate words in comments This fixes various typos, duplicated words, and tiny bits of whitespace in code comments. Author: Daniel Gustafsson <daniel@yesql.se> Author: Heikki Linnakangas <hlinnaka@iki.fi> Author: Alexander Lakhin <exclusion@gmail.com> Author: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/3F577953-A29E-4722-98AD-2DA9EFF2CBB8@yesql.se --- contrib/amcheck/expected/check_btree.out | 2 +- contrib/amcheck/sql/check_btree.sql | 2 +- contrib/amcheck/verify_nbtree.c | 2 +- doc/src/sgml/maintenance.sgml | 2 +- doc/src/sgml/meson.build | 2 +- src/backend/access/gin/ginbtree.c | 2 +- src/backend/access/heap/pruneheap.c | 6 +++--- src/backend/access/nbtree/nbtutils.c | 4 ++-- src/backend/access/rmgrdesc/xactdesc.c | 2 +- src/backend/catalog/pg_constraint.c | 2 +- src/backend/catalog/system_functions.sql | 2 +- src/backend/commands/amcmds.c | 2 +- src/backend/commands/copyfrom.c | 2 +- src/backend/commands/tablecmds.c | 9 +++++---- src/backend/commands/vacuumparallel.c | 2 +- src/backend/executor/execExpr.c | 2 +- src/backend/optimizer/path/equivclass.c | 2 +- src/backend/optimizer/path/pathkeys.c | 2 +- src/backend/optimizer/prep/prepunion.c | 3 ++- src/backend/parser/parse_jsontable.c | 2 +- src/backend/parser/parse_utilcmd.c | 4 ++-- src/backend/partitioning/partbounds.c | 6 +++--- src/backend/partitioning/partprune.c | 2 +- src/backend/postmaster/launch_backend.c | 2 +- src/backend/postmaster/walsummarizer.c | 2 +- src/backend/replication/logical/slotsync.c | 2 +- src/backend/replication/walsender.c | 2 +- src/backend/statistics/dependencies.c | 4 ++-- src/backend/storage/aio/read_stream.c | 6 +++--- src/backend/storage/buffer/bufmgr.c | 2 +- src/backend/storage/lmgr/lock.c | 2 +- src/backend/storage/lmgr/proc.c | 2 +- src/backend/utils/adt/jsonpath_exec.c | 4 ++-- src/backend/utils/adt/multirangetypes.c | 2 +- src/backend/utils/adt/selfuncs.c | 2 +- src/backend/utils/mmgr/aset.c | 4 ++-- src/backend/utils/mmgr/bump.c | 4 ++-- src/backend/utils/mmgr/generation.c | 4 ++-- src/bin/pg_basebackup/bbstreamer_tar.c | 2 +- src/bin/pg_combinebackup/pg_combinebackup.c | 2 +- src/bin/pg_combinebackup/reconstruct.c | 2 +- src/bin/pg_upgrade/t/004_subscription.pl | 2 +- src/common/unicode_category.c | 2 +- src/include/access/heapam_xlog.h | 10 +++++----- src/include/access/tableam.h | 2 +- src/include/commands/vacuum.h | 2 +- src/include/common/hashfn_unstable.h | 2 +- src/include/lib/radixtree.h | 8 ++++---- src/include/nodes/pathnodes.h | 2 +- src/include/nodes/primnodes.h | 2 +- src/include/storage/proc.h | 2 +- src/interfaces/libpq/fe-cancel.c | 2 +- src/interfaces/libpq/fe-secure-openssl.c | 2 +- src/test/isolation/expected/temp-schema-cleanup.out | 4 ++-- src/test/isolation/specs/temp-schema-cleanup.spec | 2 +- src/test/modules/test_resowner/test_resowner_many.c | 2 +- src/test/regress/expected/aggregates.out | 2 +- src/test/regress/expected/copy.out | 4 ++-- src/test/regress/expected/foreign_key.out | 2 +- src/test/regress/expected/publication.out | 4 ++-- src/test/regress/expected/tsdicts.out | 2 +- src/test/regress/sql/aggregates.sql | 2 +- src/test/regress/sql/copy.sql | 4 ++-- src/test/regress/sql/foreign_key.sql | 2 +- src/test/regress/sql/publication.sql | 4 ++-- src/test/regress/sql/tsdicts.sql | 2 +- src/test/subscription/t/004_sync.pl | 2 +- src/test/subscription/t/026_stats.pl | 2 +- 68 files changed, 98 insertions(+), 96 deletions(-) diff --git a/contrib/amcheck/expected/check_btree.out b/contrib/amcheck/expected/check_btree.out index cf8284fe12..e7fb5f5515 100644 --- a/contrib/amcheck/expected/check_btree.out +++ b/contrib/amcheck/expected/check_btree.out @@ -2,7 +2,7 @@ CREATE TABLE bttest_a(id int8); CREATE TABLE bttest_b(id int8); CREATE TABLE bttest_multi(id int8, data int8); CREATE TABLE delete_test_table (a bigint, b bigint, c bigint, d bigint); --- Stabalize tests +-- Stabilize tests ALTER TABLE bttest_a SET (autovacuum_enabled = false); ALTER TABLE bttest_b SET (autovacuum_enabled = false); ALTER TABLE bttest_multi SET (autovacuum_enabled = false); diff --git a/contrib/amcheck/sql/check_btree.sql b/contrib/amcheck/sql/check_btree.sql index 68bd71b064..0793dbfeeb 100644 --- a/contrib/amcheck/sql/check_btree.sql +++ b/contrib/amcheck/sql/check_btree.sql @@ -3,7 +3,7 @@ CREATE TABLE bttest_b(id int8); CREATE TABLE bttest_multi(id int8, data int8); CREATE TABLE delete_test_table (a bigint, b bigint, c bigint, d bigint); --- Stabalize tests +-- Stabilize tests ALTER TABLE bttest_a SET (autovacuum_enabled = false); ALTER TABLE bttest_b SET (autovacuum_enabled = false); ALTER TABLE bttest_multi SET (autovacuum_enabled = false); diff --git a/contrib/amcheck/verify_nbtree.c b/contrib/amcheck/verify_nbtree.c index f71f1854e0..20da4a46ba 100644 --- a/contrib/amcheck/verify_nbtree.c +++ b/contrib/amcheck/verify_nbtree.c @@ -3036,7 +3036,7 @@ bt_normalize_tuple(BtreeCheckState *state, IndexTuple itup) * In the heap, tuples may contain short varlena datums with both 1B * header and 4B headers. But the corresponding index tuple should always * have such varlena's with 1B headers. So, if there is a short varlena - * with 4B header, we need to convert it for for fingerprinting. + * with 4B header, we need to convert it for fingerprinting. * * Note that we rely on deterministic index_form_tuple() TOAST compression * of normalized input. diff --git a/doc/src/sgml/maintenance.sgml b/doc/src/sgml/maintenance.sgml index 2bfa05b8bc..0be90bdc7e 100644 --- a/doc/src/sgml/maintenance.sgml +++ b/doc/src/sgml/maintenance.sgml @@ -802,7 +802,7 @@ HINT: Execute a database-wide VACUUM in that database. <para> Similar to the XID case, if autovacuum fails to clear old MXIDs from a table, the system will begin to emit warning messages when the database's oldest MXIDs reach forty - million transactions from the wraparound point. And, just as an the XID case, if these + million transactions from the wraparound point. And, just as in the XID case, if these warnings are ignored, the system will refuse to generate new MXIDs once there are fewer than three million left until wraparound. </para> diff --git a/doc/src/sgml/meson.build b/doc/src/sgml/meson.build index 3a4b47d387..e418de83a7 100644 --- a/doc/src/sgml/meson.build +++ b/doc/src/sgml/meson.build @@ -207,7 +207,7 @@ if docs_dep.found() alias_target('man', man) alias_target('install-man', install_doc_man) - # built and installed as part of the the docs target + # built and installed as part of the docs target installdocs += install_doc_man docs += man endif diff --git a/src/backend/access/gin/ginbtree.c b/src/backend/access/gin/ginbtree.c index 86f938686c..b7a5013896 100644 --- a/src/backend/access/gin/ginbtree.c +++ b/src/backend/access/gin/ginbtree.c @@ -766,7 +766,7 @@ ginFinishSplit(GinBtree btree, GinBtreeStack *stack, bool freestack, /* * An entry point to ginFinishSplit() that is used when we stumble upon an * existing incompletely split page in the tree, as opposed to completing a - * split that we just made outselves. The difference is that stack->buffer may + * split that we just made ourselves. The difference is that stack->buffer may * be merely share-locked on entry, and will be upgraded to exclusive mode. * * Note: Upgrading the lock momentarily releases it. Doing that in a scan diff --git a/src/backend/access/heap/pruneheap.c b/src/backend/access/heap/pruneheap.c index d2eecaf7eb..3cdfc5b7f1 100644 --- a/src/backend/access/heap/pruneheap.c +++ b/src/backend/access/heap/pruneheap.c @@ -33,7 +33,7 @@ typedef struct { /*------------------------------------------------------- - * Arguments passed to heap_page_and_freeze() + * Arguments passed to heap_page_prune_and_freeze() *------------------------------------------------------- */ @@ -306,7 +306,7 @@ heap_page_prune_opt(Relation relation, Buffer buffer) * If the HEAP_PRUNE_FREEZE option is set, we will also freeze tuples if it's * required in order to advance relfrozenxid / relminmxid, or if it's * considered advantageous for overall system performance to do so now. The - * 'cutoffs', 'presult', 'new_refrozen_xid' and 'new_relmin_mxid' arguments + * 'cutoffs', 'presult', 'new_relfrozen_xid' and 'new_relmin_mxid' arguments * are required when freezing. When HEAP_PRUNE_FREEZE option is set, we also * set presult->all_visible and presult->all_frozen on exit, to indicate if * the VM bits can be set. They are always set to false when the @@ -337,7 +337,7 @@ heap_page_prune_opt(Relation relation, Buffer buffer) * off_loc is the offset location required by the caller to use in error * callback. * - * new_relfrozen_xid and new_relmin_xid must provided by the caller if the + * new_relfrozen_xid and new_relmin_mxid must provided by the caller if the * HEAP_PRUNE_FREEZE option is set. On entry, they contain the oldest XID and * multi-XID seen on the relation so far. They will be updated with oldest * values present on the page after pruning. After processing the whole diff --git a/src/backend/access/nbtree/nbtutils.c b/src/backend/access/nbtree/nbtutils.c index 2eff34c4aa..4a872dce16 100644 --- a/src/backend/access/nbtree/nbtutils.c +++ b/src/backend/access/nbtree/nbtutils.c @@ -1756,7 +1756,7 @@ _bt_start_prim_scan(IndexScanDesc scan, ScanDirection dir) * * (The rules are the same for backwards scans, except that the operators are * flipped: just replace the precondition's >= operator with a <=, and the - * postcondition's <= operator with with a >=. In other words, just swap the + * postcondition's <= operator with a >=. In other words, just swap the * precondition with the postcondition.) * * We also deal with "advancing" non-required arrays here. Callers whose @@ -4126,7 +4126,7 @@ _bt_checkkeys_look_ahead(IndexScanDesc scan, BTReadPageState *pstate, else { /* - * Failure -- "ahead" tuple is too far ahead (we were too aggresive). + * Failure -- "ahead" tuple is too far ahead (we were too aggressive). * * Reset the number of rechecks, and aggressively reduce the target * distance (we're much more aggressive here than we were when the diff --git a/src/backend/access/rmgrdesc/xactdesc.c b/src/backend/access/rmgrdesc/xactdesc.c index 41b842d80e..dccca201e0 100644 --- a/src/backend/access/rmgrdesc/xactdesc.c +++ b/src/backend/access/rmgrdesc/xactdesc.c @@ -25,7 +25,7 @@ * Parse the WAL format of an xact commit and abort records into an easier to * understand format. * - * This routines are in xactdesc.c because they're accessed in backend (when + * These routines are in xactdesc.c because they're accessed in backend (when * replaying WAL) and frontend (pg_waldump) code. This file is the only xact * specific one shared between both. They're complicated enough that * duplication would be bothersome. diff --git a/src/backend/catalog/pg_constraint.c b/src/backend/catalog/pg_constraint.c index 604280d322..fcb742e351 100644 --- a/src/backend/catalog/pg_constraint.c +++ b/src/backend/catalog/pg_constraint.c @@ -1651,7 +1651,7 @@ DeconstructFkConstraintRow(HeapTuple tuple, int *numfks, } /* - * FindFkPeriodOpers - + * FindFKPeriodOpers - * * Looks up the operator oids used for the PERIOD part of a temporal foreign key. * The opclass should be the opclass of that PERIOD element. diff --git a/src/backend/catalog/system_functions.sql b/src/backend/catalog/system_functions.sql index fe2bb50f46..ae099e328c 100644 --- a/src/backend/catalog/system_functions.sql +++ b/src/backend/catalog/system_functions.sql @@ -5,7 +5,7 @@ * * src/backend/catalog/system_functions.sql * - * This file redefines certain built-in functions that it's impractical + * This file redefines certain built-in functions that are impractical * to fully define in pg_proc.dat. In most cases that's because they use * SQL-standard function bodies and/or default expressions. The node * tree representations of those are too unreadable, platform-dependent, diff --git a/src/backend/commands/amcmds.c b/src/backend/commands/amcmds.c index 10e386288a..aaa0f9a1dc 100644 --- a/src/backend/commands/amcmds.c +++ b/src/backend/commands/amcmds.c @@ -167,7 +167,7 @@ get_index_am_oid(const char *amname, bool missing_ok) /* * get_table_am_oid - given an access method name, look up its OID - * and verify it corresponds to an table AM. + * and verify it corresponds to a table AM. */ Oid get_table_am_oid(const char *amname, bool missing_ok) diff --git a/src/backend/commands/copyfrom.c b/src/backend/commands/copyfrom.c index 06bc14636d..ce4d62e707 100644 --- a/src/backend/commands/copyfrom.c +++ b/src/backend/commands/copyfrom.c @@ -996,7 +996,7 @@ CopyFrom(CopyFromState cstate) cstate->escontext->error_occurred) { /* - * Soft error occured, skip this tuple and deal with error + * Soft error occurred, skip this tuple and deal with error * information according to ON_ERROR. */ if (cstate->opts.on_error == COPY_ON_ERROR_IGNORE) diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index c33a5a5888..10ae3dc8b9 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -5687,7 +5687,7 @@ ATParseTransformCmd(List **wqueue, AlteredTableInfo *tab, Relation rel, case AT_AddIndex: /* - * A primary key on a inheritance parent needs supporting NOT + * A primary key on an inheritance parent needs supporting NOT * NULL constraint on its children; enqueue commands to create * those or mark them inherited if they already exist. */ @@ -20220,7 +20220,7 @@ ATExecDetachPartitionFinalize(Relation rel, RangeVar *name) * DetachAddConstraintIfNeeded * Subroutine for ATExecDetachPartition. Create a constraint that * takes the place of the partition constraint, but avoid creating - * a dupe if an constraint already exists which implies the needed + * a dupe if a constraint already exists which implies the needed * constraint. */ static void @@ -20875,7 +20875,8 @@ GetAttributeStorage(Oid atttypid, const char *storagemode) } /* - * Struct with context of new partition for insert rows from splited partition + * Struct with context of new partition for insert rows from partition which + * has been split. */ typedef struct SplitPartitionContext { @@ -21465,7 +21466,7 @@ ATExecMergePartitions(List **wqueue, AlteredTableInfo *tab, Relation rel, /* Create table for new partition, use partitioned table as model. */ if (isSameName) { - /* Create partition table with generated temparary name. */ + /* Create partition table with generated temporary name. */ sprintf(tmpRelName, "merge-%u-%X-tmp", RelationGetRelid(rel), MyProcPid); mergePartName = makeRangeVar(get_namespace_name(RelationGetNamespace(rel)), tmpRelName, -1); diff --git a/src/backend/commands/vacuumparallel.c b/src/backend/commands/vacuumparallel.c index 5174a4e975..f26070bff2 100644 --- a/src/backend/commands/vacuumparallel.c +++ b/src/backend/commands/vacuumparallel.c @@ -8,7 +8,7 @@ * * In a parallel vacuum, we perform both index bulk deletion and index cleanup * with parallel worker processes. Individual indexes are processed by one - * vacuum process. ParalleVacuumState contains shared information as well as + * vacuum process. ParallelVacuumState contains shared information as well as * the memory space for storing dead items allocated in the DSA area. We * launch parallel worker processes at the start of parallel index * bulk-deletion and index cleanup and once all indexes are processed, the diff --git a/src/backend/executor/execExpr.c b/src/backend/executor/execExpr.c index 79087cc6d6..eb5ac20824 100644 --- a/src/backend/executor/execExpr.c +++ b/src/backend/executor/execExpr.c @@ -4400,7 +4400,7 @@ ExecInitJsonExpr(JsonExpr *jsexpr, ExprState *state, /* * Add a special step, if needed, to check if the coercion evaluation ran * into an error but was not thrown because the ON ERROR behavior is not - * ERROR. It will set jsesestate->error if an error did occur. + * ERROR. It will set jsestate->error if an error did occur. */ if (jsestate->jump_eval_coercion >= 0 && escontext != NULL) { diff --git a/src/backend/optimizer/path/equivclass.c b/src/backend/optimizer/path/equivclass.c index a619ff9177..30d5e3cd08 100644 --- a/src/backend/optimizer/path/equivclass.c +++ b/src/backend/optimizer/path/equivclass.c @@ -2870,7 +2870,7 @@ add_child_join_rel_equivalences(PlannerInfo *root, /* * add_setop_child_rel_equivalences * Add equivalence members for each non-resjunk target in 'child_tlist' - * to the EquivalenceClass in the corresponding setop_pathkey's pk_class. + * to the EquivalenceClass in the corresponding setop_pathkey's pk_eclass. * * 'root' is the PlannerInfo belonging to the top-level set operation. * 'child_rel' is the RelOptInfo of the child relation we're adding diff --git a/src/backend/optimizer/path/pathkeys.c b/src/backend/optimizer/path/pathkeys.c index 1d61881a6b..8b258cbef9 100644 --- a/src/backend/optimizer/path/pathkeys.c +++ b/src/backend/optimizer/path/pathkeys.c @@ -384,7 +384,7 @@ group_keys_reorder_by_pathkeys(List *pathkeys, List **group_pathkeys, * *group_pathkeys containing grouping pathkeys altogether with aggregate * pathkeys. If we process aggregate pathkeys we could get an invalid * result of get_sortgroupref_clause_noerr(), because their - * pathkey->pk_eclass->ec_sortref doesn't referece query targetlist. So, + * pathkey->pk_eclass->ec_sortref doesn't reference query targetlist. So, * we allocate a separate list of pathkeys for lookups. */ grouping_pathkeys = list_copy_head(*group_pathkeys, num_groupby_pathkeys); diff --git a/src/backend/optimizer/prep/prepunion.c b/src/backend/optimizer/prep/prepunion.c index afcb5c0f0f..3f14e90a45 100644 --- a/src/backend/optimizer/prep/prepunion.c +++ b/src/backend/optimizer/prep/prepunion.c @@ -214,7 +214,8 @@ set_operation_ordered_results_useful(SetOperationStmt *setop) * * Returns a RelOptInfo for the subtree, as well as these output parameters: * *pTargetList: receives the fully-fledged tlist for the subtree's top plan - * *istrivial_tlist: true iif datatypes between parent and child match. + * *istrivial_tlist: true if, and only if, datatypes between parent and child + * match. * * The pTargetList output parameter is mostly redundant with the pathtarget * of the returned RelOptInfo, but for the moment we need it because much of diff --git a/src/backend/parser/parse_jsontable.c b/src/backend/parser/parse_jsontable.c index 99d3101f6b..3f620ccb9f 100644 --- a/src/backend/parser/parse_jsontable.c +++ b/src/backend/parser/parse_jsontable.c @@ -70,7 +70,7 @@ static JsonTablePlan *makeJsonTableSiblingJoin(JsonTablePlan *lplan, * (jt->context_item) and the column-generating expressions (jt->columns) to * populate TableFunc.docexpr and TableFunc.colvalexprs, respectively. Also, * the PASSING values (jt->passing) are transformed and added into - * TableFunc.passvalexprs. + * TableFunc.passingvalexprs. */ ParseNamespaceItem * transformJsonTable(ParseState *pstate, JsonTable *jt) diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index ceba069905..6f2be56def 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -3451,7 +3451,7 @@ checkPartition(Relation rel, Oid partRelOid) /* * transformPartitionCmdForSplit - * Analyze the ALTER TABLLE ... SPLIT PARTITION command + * Analyze the ALTER TABLE ... SPLIT PARTITION command * * For each new partition sps->bound is set to the transformed value of bound. * Does checks for bounds of new partitions. @@ -3490,7 +3490,7 @@ transformPartitionCmdForSplit(CreateStmtContext *cxt, PartitionCmd *partcmd) /* * transformPartitionCmdForMerge - * Analyze the ALTER TABLLE ... MERGE PARTITIONS command + * Analyze the ALTER TABLE ... MERGE PARTITIONS command * * Does simple checks for merged partitions. Calculates bound of result * partition. diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c index c0c49b0a0b..31444f4131 100644 --- a/src/backend/partitioning/partbounds.c +++ b/src/backend/partitioning/partbounds.c @@ -5145,7 +5145,7 @@ get_partition_bound_spec(Oid partOid, RangeVar *name) * the first of new partitions) then lower bound of "spec" should be equal (or * greater than or equal in case defaultPart=true) to lower bound of split * partition. If last=true (this means that "spec" is the last of new - * partitions) then upper bound of of "spec" should be equal (or less than or + * partitions) then upper bound of "spec" should be equal (or less than or * equal in case defaultPart=true) to upper bound of split partition. * * parent: partitioned table @@ -5244,8 +5244,8 @@ check_partition_bounds_for_split_range(Relation parent, false, split_upper); /* - * Upper bound of of "spec" should be equal (or less than or equal - * in case defaultPart=true) to upper bound of split partition. + * Upper bound of "spec" should be equal (or less than or equal in + * case defaultPart=true) to upper bound of split partition. */ if ((!defaultPart && cmpval) || (defaultPart && cmpval > 0)) overlap = true; diff --git a/src/backend/partitioning/partprune.c b/src/backend/partitioning/partprune.c index 9006afd9d2..9a1a7faac7 100644 --- a/src/backend/partitioning/partprune.c +++ b/src/backend/partitioning/partprune.c @@ -1825,7 +1825,7 @@ match_clause_to_partition_key(GeneratePruningStepsContext *context, BooleanTest *new_booltest = (BooleanTest *) copyObject(clause); NullTest *nulltest; - /* We expect 'noteq' to only be set to true for BooleanTests */ + /* We expect 'notclause' to only be set to true for BooleanTests */ Assert(IsA(clause, BooleanTest)); /* reverse the bool test */ diff --git a/src/backend/postmaster/launch_backend.c b/src/backend/postmaster/launch_backend.c index cb0c3e2f8a..4e9dde1517 100644 --- a/src/backend/postmaster/launch_backend.c +++ b/src/backend/postmaster/launch_backend.c @@ -187,7 +187,7 @@ child_process_kind child_process_kinds[] = { /* * WAL senders start their life as regular backend processes, and change * their type after authenticating the client for replication. We list it - * here forPostmasterChildName() but cannot launch them directly. + * here for PostmasterChildName() but cannot launch them directly. */ [B_WAL_SENDER] = {"wal sender", NULL, true}, [B_SLOTSYNC_WORKER] = {"slot sync worker", ReplSlotSyncWorkerMain, true}, diff --git a/src/backend/postmaster/walsummarizer.c b/src/backend/postmaster/walsummarizer.c index 0cd5080fa7..72f6c04478 100644 --- a/src/backend/postmaster/walsummarizer.c +++ b/src/backend/postmaster/walsummarizer.c @@ -108,7 +108,7 @@ static WalSummarizerData *WalSummarizerCtl; /* * When we reach end of WAL and need to read more, we sleep for a number of - * milliseconds that is a integer multiple of MS_PER_SLEEP_QUANTUM. This is + * milliseconds that is an integer multiple of MS_PER_SLEEP_QUANTUM. This is * the multiplier. It should vary between 1 and MAX_SLEEP_QUANTA, depending * on system activity. See summarizer_wait_for_wal() for how we adjust this. */ diff --git a/src/backend/replication/logical/slotsync.c b/src/backend/replication/logical/slotsync.c index bda0de52db..cb39adcd0e 100644 --- a/src/backend/replication/logical/slotsync.c +++ b/src/backend/replication/logical/slotsync.c @@ -88,7 +88,7 @@ * overwrites. * * The 'last_start_time' is needed by postmaster to start the slot sync worker - * once per SLOTSYNC_RESTART_INTERVAL_SEC. In cases where a immediate restart + * once per SLOTSYNC_RESTART_INTERVAL_SEC. In cases where an immediate restart * is expected (e.g., slot sync GUCs change), slot sync worker will reset * last_start_time before exiting, so that postmaster can start the worker * without waiting for SLOTSYNC_RESTART_INTERVAL_SEC. diff --git a/src/backend/replication/walsender.c b/src/backend/replication/walsender.c index bc40c454de..9bf7c67f37 100644 --- a/src/backend/replication/walsender.c +++ b/src/backend/replication/walsender.c @@ -3493,7 +3493,7 @@ WalSndDone(WalSndSendDataCallback send_data) * Returns the latest point in WAL that has been safely flushed to disk. * This should only be called when in recovery. * - * This is called either by cascading walsender to find WAL postion to be sent + * This is called either by cascading walsender to find WAL position to be sent * to a cascaded standby or by slot synchronization operation to validate remote * slot's lsn before syncing it locally. * diff --git a/src/backend/statistics/dependencies.c b/src/backend/statistics/dependencies.c index 5eda06839e..8d01a93b30 100644 --- a/src/backend/statistics/dependencies.c +++ b/src/backend/statistics/dependencies.c @@ -794,7 +794,7 @@ dependency_is_compatible_clause(Node *clause, Index relid, AttrNumber *attnum) } else if (IsA(clause, ScalarArrayOpExpr)) { - /* If it's an scalar array operator, check for Var IN Const. */ + /* If it's a scalar array operator, check for Var IN Const. */ ScalarArrayOpExpr *expr = (ScalarArrayOpExpr *) clause; /* @@ -1222,7 +1222,7 @@ dependency_is_compatible_expression(Node *clause, Index relid, List *statlist, N } else if (IsA(clause, ScalarArrayOpExpr)) { - /* If it's an scalar array operator, check for Var IN Const. */ + /* If it's a scalar array operator, check for Var IN Const. */ ScalarArrayOpExpr *expr = (ScalarArrayOpExpr *) clause; /* diff --git a/src/backend/storage/aio/read_stream.c b/src/backend/storage/aio/read_stream.c index f54dacdd91..634cf4f0d1 100644 --- a/src/backend/storage/aio/read_stream.c +++ b/src/backend/storage/aio/read_stream.c @@ -541,9 +541,9 @@ read_stream_begin_relation(int flags, stream->distance = 1; /* - * Since we always always access the same relation, we can initialize - * parts of the ReadBuffersOperation objects and leave them that way, to - * avoid wasting CPU cycles writing to them for each read. + * Since we always access the same relation, we can initialize parts of + * the ReadBuffersOperation objects and leave them that way, to avoid + * wasting CPU cycles writing to them for each read. */ for (int i = 0; i < max_ios; ++i) { diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index 901b7230fb..49637284f9 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -1073,7 +1073,7 @@ PinBufferForBlock(Relation rel, /* * If there is no Relation it usually implies recovery and thus permanent, - * but we take an argmument because CreateAndCopyRelationData can reach us + * but we take an argument because CreateAndCopyRelationData can reach us * with only an SMgrRelation for an unlogged relation that we don't want * to flag with BM_PERMANENT. */ diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 5022a50dd7..5154353c84 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -1032,7 +1032,7 @@ LockAcquireExtended(const LOCKTAG *locktag, /* * Sleep till someone wakes me up. We do this even in the dontWait - * case, beause while trying to go to sleep, we may discover that we + * case, because while trying to go to sleep, we may discover that we * can acquire the lock immediately after all. */ diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index 162b1f919d..e4f256c63c 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -1047,7 +1047,7 @@ AuxiliaryPidGetProc(int pid) * called, because it could be that when we try to find a position at which * to insert ourself into the wait queue, we discover that we must be inserted * ahead of everyone who wants a lock that conflict with ours. In that case, - * we get the lock immediately. Beause of this, it's sensible for this function + * we get the lock immediately. Because of this, it's sensible for this function * to have a dontWait argument, despite the name. * * The lock table's partition lock must be held at entry, and will be held diff --git a/src/backend/utils/adt/jsonpath_exec.c b/src/backend/utils/adt/jsonpath_exec.c index 103572ed93..ad6a5369d9 100644 --- a/src/backend/utils/adt/jsonpath_exec.c +++ b/src/backend/utils/adt/jsonpath_exec.c @@ -4200,7 +4200,7 @@ JsonTableSetDocument(TableFuncScanState *state, Datum value) } /* - * Evaluate a JsonTablePlan's jsonpath to get a new row pattren from + * Evaluate a JsonTablePlan's jsonpath to get a new row pattern from * the given context item */ static void @@ -4318,7 +4318,7 @@ JsonTablePlanScanNextRow(JsonTablePlanState *planstate) /* * Now fetch the nested plan's current row to be joined against the * parent row. Any further nested plans' paths will be re-evaluated - * reursively, level at a time, after setting each nested plan's + * recursively, level at a time, after setting each nested plan's * current row. */ (void) JsonTablePlanNextRow(planstate->nested); diff --git a/src/backend/utils/adt/multirangetypes.c b/src/backend/utils/adt/multirangetypes.c index 8f12c953ca..558c6c18c3 100644 --- a/src/backend/utils/adt/multirangetypes.c +++ b/src/backend/utils/adt/multirangetypes.c @@ -330,7 +330,7 @@ multirange_out(PG_FUNCTION_ARGS) } /* - * Binary representation: First a int32-sized count of ranges, followed by + * Binary representation: First an int32-sized count of ranges, followed by * ranges in their native binary representation. */ Datum diff --git a/src/backend/utils/adt/selfuncs.c b/src/backend/utils/adt/selfuncs.c index 35f8f306ee..5f5d7959d8 100644 --- a/src/backend/utils/adt/selfuncs.c +++ b/src/backend/utils/adt/selfuncs.c @@ -6968,7 +6968,7 @@ btcostestimate(PlannerInfo *root, IndexPath *path, double loop_count, * btree scans, making the top-level scan look like a continuous scan * (as opposed to num_sa_scans-many primitive index scans). After * all, btree scans mostly work like that at runtime. However, such a - * scheme would badly bias genericcostestimate's simplistic appraoch + * scheme would badly bias genericcostestimate's simplistic approach * to calculating numIndexPages through prorating. * * Stick with the approach taken by non-native SAOP scans for now. diff --git a/src/backend/utils/mmgr/aset.c b/src/backend/utils/mmgr/aset.c index 751cc3408c..dede30dd86 100644 --- a/src/backend/utils/mmgr/aset.c +++ b/src/backend/utils/mmgr/aset.c @@ -979,8 +979,8 @@ AllocSetAlloc(MemoryContext context, Size size, int flags) Assert(set->blocks != NULL); /* - * If requested size exceeds maximum for chunks we hand the the request - * off to AllocSetAllocLarge(). + * If requested size exceeds maximum for chunks we hand the request off to + * AllocSetAllocLarge(). */ if (size > set->allocChunkLimit) return AllocSetAllocLarge(context, size, flags); diff --git a/src/backend/utils/mmgr/bump.c b/src/backend/utils/mmgr/bump.c index 449bd29344..26d2907fb7 100644 --- a/src/backend/utils/mmgr/bump.c +++ b/src/backend/utils/mmgr/bump.c @@ -501,8 +501,8 @@ BumpAlloc(MemoryContext context, Size size, int flags) #endif /* - * If requested size exceeds maximum for chunks we hand the the request - * off to BumpAllocLarge(). + * If requested size exceeds maximum for chunks we hand the request off to + * BumpAllocLarge(). */ if (chunk_size > set->allocChunkLimit) return BumpAllocLarge(context, size, flags); diff --git a/src/backend/utils/mmgr/generation.c b/src/backend/utils/mmgr/generation.c index 5d81af1f94..b858b8d0f7 100644 --- a/src/backend/utils/mmgr/generation.c +++ b/src/backend/utils/mmgr/generation.c @@ -541,8 +541,8 @@ GenerationAlloc(MemoryContext context, Size size, int flags) #endif /* - * If requested size exceeds maximum for chunks we hand the the request - * off to GenerationAllocLarge(). + * If requested size exceeds maximum for chunks we hand the request off to + * GenerationAllocLarge(). */ if (chunk_size > set->allocChunkLimit) return GenerationAllocLarge(context, size, flags); diff --git a/src/bin/pg_basebackup/bbstreamer_tar.c b/src/bin/pg_basebackup/bbstreamer_tar.c index a778e620cc..dec71ea65b 100644 --- a/src/bin/pg_basebackup/bbstreamer_tar.c +++ b/src/bin/pg_basebackup/bbstreamer_tar.c @@ -345,7 +345,7 @@ bbstreamer_tar_parser_free(bbstreamer *streamer) } /* - * Create an bbstreamer that can generate a tar archive. + * Create a bbstreamer that can generate a tar archive. * * This is intended to be usable either for generating a brand-new tar archive * or for modifying one on the fly. The input should be a series of typed diff --git a/src/bin/pg_combinebackup/pg_combinebackup.c b/src/bin/pg_combinebackup/pg_combinebackup.c index 2788c78fdd..08ef397a67 100644 --- a/src/bin/pg_combinebackup/pg_combinebackup.c +++ b/src/bin/pg_combinebackup/pg_combinebackup.c @@ -1156,7 +1156,7 @@ remember_to_cleanup_directory(char *target_path, bool rmtopdir) } /* - * Empty out the list of directories scheduled for cleanup a exit. + * Empty out the list of directories scheduled for cleanup at exit. * * We want to remove the output directories only on a failure, so call this * function when we know that the operation has succeeded. diff --git a/src/bin/pg_combinebackup/reconstruct.c b/src/bin/pg_combinebackup/reconstruct.c index 15f62c18df..d481a5c565 100644 --- a/src/bin/pg_combinebackup/reconstruct.c +++ b/src/bin/pg_combinebackup/reconstruct.c @@ -756,7 +756,7 @@ write_block(int fd, char *output_filename, } /* - * Read a block of data (BLCKSZ bytes) into the the buffer. + * Read a block of data (BLCKSZ bytes) into the buffer. */ static void read_block(rfile *s, off_t off, uint8 *buffer) diff --git a/src/bin/pg_upgrade/t/004_subscription.pl b/src/bin/pg_upgrade/t/004_subscription.pl index 48918e8c29..a038928fe7 100644 --- a/src/bin/pg_upgrade/t/004_subscription.pl +++ b/src/bin/pg_upgrade/t/004_subscription.pl @@ -241,7 +241,7 @@ my $tab_upgraded2_oid = $old_sub->safe_psql('postgres', $old_sub->stop; -# Change configuration so that initial table sync sync does not get started +# Change configuration so that initial table sync does not get started # automatically $new_sub->append_conf('postgresql.conf', "max_logical_replication_workers = 0"); diff --git a/src/common/unicode_category.c b/src/common/unicode_category.c index bece7334f5..359e82ec31 100644 --- a/src/common/unicode_category.c +++ b/src/common/unicode_category.c @@ -23,7 +23,7 @@ /* * Create bitmasks from pg_unicode_category values for efficient comparison of * multiple categories. For instance, PG_U_MN_MASK is a bitmask representing - * the general cateogry Mn; and PG_U_M_MASK represents general categories Mn, + * the general category Mn; and PG_U_M_MASK represents general categories Mn, * Me, and Mc. * * The number of Unicode General Categories should never grow, so a 32-bit diff --git a/src/include/access/heapam_xlog.h b/src/include/access/heapam_xlog.h index 551a0370aa..22a1747c4d 100644 --- a/src/include/access/heapam_xlog.h +++ b/src/include/access/heapam_xlog.h @@ -287,7 +287,7 @@ typedef struct xl_heap_prune uint8 flags; /* - * If XLHP_HAS_CONFLICT_HORIZON is set, the conflict horzion XID follows, + * If XLHP_HAS_CONFLICT_HORIZON is set, the conflict horizon XID follows, * unaligned */ } xl_heap_prune; @@ -322,7 +322,7 @@ typedef struct xl_heap_prune #define XLHP_HAS_FREEZE_PLANS (1 << 4) /* - * XLHP_HAS_REDIRECTIONS, XLHP_HAS_DEAD_ITEMS, and XLHP_HAS_NOW_UNUSED + * XLHP_HAS_REDIRECTIONS, XLHP_HAS_DEAD_ITEMS, and XLHP_HAS_NOW_UNUSED_ITEMS * indicate that xlhp_prune_items sub-records with redirected, dead, and * unused item offsets are present. */ @@ -354,9 +354,9 @@ typedef struct xlhp_freeze_plan * * The backup block's data contains an array of xlhp_freeze_plan structs (with * nplans elements). The individual item offsets are located in an array at - * the end of the entire record with with nplans * (each plan's ntuples) - * members. Those offsets are in the same order as the plans. The REDO - * routine uses the offsets to freeze the corresponding heap tuples. + * the end of the entire record with nplans * (each plan's ntuples) members + * Those offsets are in the same order as the plans. The REDO routine uses + * the offsets to freeze the corresponding heap tuples. * * (As of PostgreSQL 17, XLOG_HEAP2_PRUNE_VACUUM_SCAN records replace the * separate XLOG_HEAP2_FREEZE_PAGE records.) diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h index 1cc395317e..d61cc0d48d 100644 --- a/src/include/access/tableam.h +++ b/src/include/access/tableam.h @@ -1788,7 +1788,7 @@ table_index_validate_scan(Relation table_rel, } /* - * table_relation_analyze - fill the infromation for a sampling statistics + * table_relation_analyze - fill the information for a sampling statistics * acquisition * * The pointer to a function that will collect sample rows from the table diff --git a/src/include/commands/vacuum.h b/src/include/commands/vacuum.h index 12a03abb75..f28b560119 100644 --- a/src/include/commands/vacuum.h +++ b/src/include/commands/vacuum.h @@ -185,7 +185,7 @@ typedef struct VacAttrStats * table and stored into the caller-provided `rows` array. The actual number * of rows collected must be returned. In addition, a function should store * estimates of the total numbers of live and dead rows in the table into the - * output parameters `*totalrows` and `*totaldeadrows1. (Set `*totaldeadrows` + * output parameters `*totalrows` and `*totaldeadrows. (Set `*totaldeadrows` * to zero if the storage does not have any concept of dead rows.) */ typedef int (*AcquireSampleRowsFunc) (Relation relation, int elevel, diff --git a/src/include/common/hashfn_unstable.h b/src/include/common/hashfn_unstable.h index 7b647470ab..0adb0f82f9 100644 --- a/src/include/common/hashfn_unstable.h +++ b/src/include/common/hashfn_unstable.h @@ -73,7 +73,7 @@ * * For longer or variable-length input, fasthash_accum() is a more * flexible, but more verbose method. The standalone functions use this - * internally, so see fasthash64() for an an example of this. + * internally, so see fasthash64() for an example of this. * * After all inputs have been mixed in, finalize the hash: * diff --git a/src/include/lib/radixtree.h b/src/include/lib/radixtree.h index dc4c00d38a..e780b8d323 100644 --- a/src/include/lib/radixtree.h +++ b/src/include/lib/radixtree.h @@ -64,7 +64,7 @@ * small enough. * * There are two other techniques described in the paper that are not - * impemented here: + * implemented here: * - path compression "...removes all inner nodes that have only a single child." * - lazy path expansion "...inner nodes are only created if they are required * to distinguish at least two leaf nodes." @@ -385,7 +385,7 @@ typedef struct RT_NODE /* * Number of children. uint8 is sufficient for all node kinds, because - * nodes shrink when this number gets lower than some thresold. Since + * nodes shrink when this number gets lower than some threshold. Since * node256 cannot possibly have zero children, we let the counter overflow * and we interpret zero as "256" for this node kind. */ @@ -1581,7 +1581,7 @@ RT_EXTEND_UP(RT_RADIX_TREE * tree, uint64 key) Assert(shift < target_shift); - /* Grow tree upwards until start shift can accomodate the key */ + /* Grow tree upwards until start shift can accommodate the key */ while (shift < target_shift) { RT_CHILD_PTR node; @@ -1869,7 +1869,7 @@ RT_CREATE(MemoryContext ctx) */ if (sizeof(RT_VALUE_TYPE) > sizeof(RT_PTR_ALLOC)) tree->leaf_context = SlabContextCreate(ctx, - RT_STR(RT_PREFIX) "radix_tree leaf contex", + RT_STR(RT_PREFIX) "radix_tree leaf context", RT_SLAB_BLOCK_SIZE(sizeof(RT_VALUE_TYPE)), sizeof(RT_VALUE_TYPE)); #endif /* !RT_VARLEN_VALUE_SIZE */ diff --git a/src/include/nodes/pathnodes.h b/src/include/nodes/pathnodes.h index 6c71098f2d..b8141f141a 100644 --- a/src/include/nodes/pathnodes.h +++ b/src/include/nodes/pathnodes.h @@ -2867,7 +2867,7 @@ typedef struct PlaceHolderVar * are not set meaningfully within such structs. * * We also create transient SpecialJoinInfos for child joins during - * partiotionwise join planning, which are also not present in join_info_list. + * partitionwise join planning, which are also not present in join_info_list. */ #ifndef HAVE_SPECIALJOININFO_TYPEDEF typedef struct SpecialJoinInfo SpecialJoinInfo; diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h index dafe93a4c9..ab264fdc07 100644 --- a/src/include/nodes/primnodes.h +++ b/src/include/nodes/primnodes.h @@ -1788,7 +1788,7 @@ typedef struct JsonExpr /* Format of the above expression needed by ruleutils.c */ JsonFormat *format; - /* jsopath-valued expression containing the query pattern */ + /* jsonpath-valued expression containing the query pattern */ Node *path_spec; /* Expected type/format of the output. */ diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index 18891a86fb..9488bf1857 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -202,7 +202,7 @@ struct PGPROC LocalTransactionId lxid; /* local id of top-level transaction * currently * being executed by this * proc, if running; else - * InvalidLocaltransactionId */ + * InvalidLocalTransactionId */ } vxid; /* These fields are zero while a backend is still starting up: */ diff --git a/src/interfaces/libpq/fe-cancel.c b/src/interfaces/libpq/fe-cancel.c index 954dce5431..4f00a91b51 100644 --- a/src/interfaces/libpq/fe-cancel.c +++ b/src/interfaces/libpq/fe-cancel.c @@ -210,7 +210,7 @@ PQcancelPoll(PGcancelConn *cancelConn) int n; /* - * We leave most of the connection establishement to PQconnectPoll, since + * We leave most of the connection establishment to PQconnectPoll, since * it's very similar to normal connection establishment. But once we get * to the CONNECTION_AWAITING_RESPONSE we need to start doing our own * thing. diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c index c98cfa6084..e7a4d006e1 100644 --- a/src/interfaces/libpq/fe-secure-openssl.c +++ b/src/interfaces/libpq/fe-secure-openssl.c @@ -1655,7 +1655,7 @@ pgtls_close(PGconn *conn) { /* * In the non-SSL case, just remove the crypto callbacks if the - * connection has then loaded. This code path has no dependency on + * connection has them loaded. This code path has no dependency on * any pending SSL calls. */ if (conn->crypto_loaded) diff --git a/src/test/isolation/expected/temp-schema-cleanup.out b/src/test/isolation/expected/temp-schema-cleanup.out index 35b91d9e45..d10aee53a8 100644 --- a/src/test/isolation/expected/temp-schema-cleanup.out +++ b/src/test/isolation/expected/temp-schema-cleanup.out @@ -9,7 +9,7 @@ step s1_create_temp_objects: CREATE OR REPLACE FUNCTION pg_temp.long() RETURNS text LANGUAGE sql AS $body$ SELECT %L; $body$$outer$, (SELECT string_agg(g.i::text||':'||random()::text, '|') FROM generate_series(1, 100) g(i)))); - -- The above bug requirs function removal to happen after a catalog + -- The above bug requires function removal to happen after a catalog -- invalidation. dependency.c sorts objects in descending oid order so -- that newer objects are deleted before older objects, so create a -- table after. @@ -66,7 +66,7 @@ step s1_create_temp_objects: CREATE OR REPLACE FUNCTION pg_temp.long() RETURNS text LANGUAGE sql AS $body$ SELECT %L; $body$$outer$, (SELECT string_agg(g.i::text||':'||random()::text, '|') FROM generate_series(1, 100) g(i)))); - -- The above bug requirs function removal to happen after a catalog + -- The above bug requires function removal to happen after a catalog -- invalidation. dependency.c sorts objects in descending oid order so -- that newer objects are deleted before older objects, so create a -- table after. diff --git a/src/test/isolation/specs/temp-schema-cleanup.spec b/src/test/isolation/specs/temp-schema-cleanup.spec index a9417b7e90..72decba6cb 100644 --- a/src/test/isolation/specs/temp-schema-cleanup.spec +++ b/src/test/isolation/specs/temp-schema-cleanup.spec @@ -30,7 +30,7 @@ step s1_create_temp_objects { CREATE OR REPLACE FUNCTION pg_temp.long() RETURNS text LANGUAGE sql AS $body$ SELECT %L; $body$$outer$, (SELECT string_agg(g.i::text||':'||random()::text, '|') FROM generate_series(1, 100) g(i)))); - -- The above bug requirs function removal to happen after a catalog + -- The above bug requires function removal to happen after a catalog -- invalidation. dependency.c sorts objects in descending oid order so -- that newer objects are deleted before older objects, so create a -- table after. diff --git a/src/test/modules/test_resowner/test_resowner_many.c b/src/test/modules/test_resowner/test_resowner_many.c index 4722c66267..7808c9e5df 100644 --- a/src/test/modules/test_resowner/test_resowner_many.c +++ b/src/test/modules/test_resowner/test_resowner_many.c @@ -196,7 +196,7 @@ GetTotalResourceCount(ManyTestResourceKind *kinds, int nkinds) * Remember lots of resources, belonging to 'nkinds' different resource types * with different priorities. Then forget some of them, and finally, release * the resource owner. We use a custom resource type that performs various - * sanity checks to verify that all the the resources are released, and in the + * sanity checks to verify that all the resources are released, and in the * correct order. */ PG_FUNCTION_INFO_V1(test_resowner_many); diff --git a/src/test/regress/expected/aggregates.out b/src/test/regress/expected/aggregates.out index 50695d83a2..56c361ccef 100644 --- a/src/test/regress/expected/aggregates.out +++ b/src/test/regress/expected/aggregates.out @@ -2889,7 +2889,7 @@ GROUP BY c1.w, c1.z; RESET enable_nestloop; RESET enable_hashjoin; DROP TABLE group_agg_pk; --- Test the case where the the ordering of scan matches the ordering within the +-- Test the case where the ordering of the scan matches the ordering within the -- aggregate but cannot be found in the group-by list CREATE TABLE agg_sort_order (c1 int PRIMARY KEY, c2 int); CREATE UNIQUE INDEX agg_sort_order_c2_idx ON agg_sort_order(c2); diff --git a/src/test/regress/expected/copy.out b/src/test/regress/expected/copy.out index b48365ec98..44114089a6 100644 --- a/src/test/regress/expected/copy.out +++ b/src/test/regress/expected/copy.out @@ -276,8 +276,8 @@ CREATE TABLE parted_si_p_even PARTITION OF parted_si FOR VALUES IN (0); CREATE TABLE parted_si_p_odd PARTITION OF parted_si FOR VALUES IN (1); -- Test that bulk relation extension handles reusing a single BulkInsertState -- across partitions. Without the fix applied, this reliably reproduces --- #18130 unless shared_buffers is extremely small (preventing any use use of --- bulk relation extension). See +-- #18130 unless shared_buffers is extremely small (preventing any use of bulk +-- relation extension). See -- https://postgr.es/m/18130-7a86a7356a75209d%40postgresql.org -- https://postgr.es/m/257696.1695670946%40sss.pgh.pa.us \set filename :abs_srcdir '/data/desc.data' diff --git a/src/test/regress/expected/foreign_key.out b/src/test/regress/expected/foreign_key.out index af2a878dd6..0b55167ac8 100644 --- a/src/test/regress/expected/foreign_key.out +++ b/src/test/regress/expected/foreign_key.out @@ -2734,7 +2734,7 @@ UPDATE fkpart10.tbl1 SET f1 = 2 WHERE f1 = 1; INSERT INTO fkpart10.tbl1 VALUES (0), (1); COMMIT; -- test that cross-partition updates correctly enforces the foreign key --- restriction (specifically testing INITIAILLY DEFERRED) +-- restriction (specifically testing INITIALLY DEFERRED) BEGIN; UPDATE fkpart10.tbl1 SET f1 = 3 WHERE f1 = 0; UPDATE fkpart10.tbl3 SET f1 = f1 * -1; diff --git a/src/test/regress/expected/publication.out b/src/test/regress/expected/publication.out index 0c5521d2aa..09a8d8221c 100644 --- a/src/test/regress/expected/publication.out +++ b/src/test/regress/expected/publication.out @@ -945,10 +945,10 @@ ALTER TABLE rf_tbl_abcd_part_pk ATTACH PARTITION rf_tbl_abcd_part_pk_1 FOR VALUE SET client_min_messages = 'ERROR'; CREATE PUBLICATION testpub6 FOR TABLE rf_tbl_abcd_pk (a, b); RESET client_min_messages; --- ok - (a,b) coverts all PK cols +-- ok - (a,b) covers all PK cols UPDATE rf_tbl_abcd_pk SET a = 1; ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_pk (a, b, c); --- ok - (a,b,c) coverts all PK cols +-- ok - (a,b,c) covers all PK cols UPDATE rf_tbl_abcd_pk SET a = 1; ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_pk (a); -- fail - "b" is missing from the column list diff --git a/src/test/regress/expected/tsdicts.out b/src/test/regress/expected/tsdicts.out index 4eff85da79..0bbf2ff4ca 100644 --- a/src/test/regress/expected/tsdicts.out +++ b/src/test/regress/expected/tsdicts.out @@ -689,7 +689,7 @@ CREATE TEXT SEARCH DICTIONARY tsdict_case ERROR: unrecognized Ispell parameter: "DictFile" -- Test grammar for configurations CREATE TEXT SEARCH CONFIGURATION dummy_tst (COPY=english); --- Overriden mapping change with duplicated tokens. +-- Overridden mapping change with duplicated tokens. ALTER TEXT SEARCH CONFIGURATION dummy_tst ALTER MAPPING FOR word, word WITH ispell; -- Not a token supported by the configuration's parser, fails. diff --git a/src/test/regress/sql/aggregates.sql b/src/test/regress/sql/aggregates.sql index 2905848ead..d28338ba3d 100644 --- a/src/test/regress/sql/aggregates.sql +++ b/src/test/regress/sql/aggregates.sql @@ -1257,7 +1257,7 @@ RESET enable_nestloop; RESET enable_hashjoin; DROP TABLE group_agg_pk; --- Test the case where the the ordering of scan matches the ordering within the +-- Test the case where the ordering of the scan matches the ordering within the -- aggregate but cannot be found in the group-by list CREATE TABLE agg_sort_order (c1 int PRIMARY KEY, c2 int); CREATE UNIQUE INDEX agg_sort_order_c2_idx ON agg_sort_order(c2); diff --git a/src/test/regress/sql/copy.sql b/src/test/regress/sql/copy.sql index 43d2e906dd..e2dd24cb35 100644 --- a/src/test/regress/sql/copy.sql +++ b/src/test/regress/sql/copy.sql @@ -306,8 +306,8 @@ CREATE TABLE parted_si_p_odd PARTITION OF parted_si FOR VALUES IN (1); -- Test that bulk relation extension handles reusing a single BulkInsertState -- across partitions. Without the fix applied, this reliably reproduces --- #18130 unless shared_buffers is extremely small (preventing any use use of --- bulk relation extension). See +-- #18130 unless shared_buffers is extremely small (preventing any use of bulk +-- relation extension). See -- https://postgr.es/m/18130-7a86a7356a75209d%40postgresql.org -- https://postgr.es/m/257696.1695670946%40sss.pgh.pa.us \set filename :abs_srcdir '/data/desc.data' diff --git a/src/test/regress/sql/foreign_key.sql b/src/test/regress/sql/foreign_key.sql index 22e177f89b..f5e0938999 100644 --- a/src/test/regress/sql/foreign_key.sql +++ b/src/test/regress/sql/foreign_key.sql @@ -1943,7 +1943,7 @@ INSERT INTO fkpart10.tbl1 VALUES (0), (1); COMMIT; -- test that cross-partition updates correctly enforces the foreign key --- restriction (specifically testing INITIAILLY DEFERRED) +-- restriction (specifically testing INITIALLY DEFERRED) BEGIN; UPDATE fkpart10.tbl1 SET f1 = 3 WHERE f1 = 0; UPDATE fkpart10.tbl3 SET f1 = f1 * -1; diff --git a/src/test/regress/sql/publication.sql b/src/test/regress/sql/publication.sql index 8ba8036bfb..479d4f3264 100644 --- a/src/test/regress/sql/publication.sql +++ b/src/test/regress/sql/publication.sql @@ -603,10 +603,10 @@ ALTER TABLE rf_tbl_abcd_part_pk ATTACH PARTITION rf_tbl_abcd_part_pk_1 FOR VALUE SET client_min_messages = 'ERROR'; CREATE PUBLICATION testpub6 FOR TABLE rf_tbl_abcd_pk (a, b); RESET client_min_messages; --- ok - (a,b) coverts all PK cols +-- ok - (a,b) covers all PK cols UPDATE rf_tbl_abcd_pk SET a = 1; ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_pk (a, b, c); --- ok - (a,b,c) coverts all PK cols +-- ok - (a,b,c) covers all PK cols UPDATE rf_tbl_abcd_pk SET a = 1; ALTER PUBLICATION testpub6 SET TABLE rf_tbl_abcd_pk (a); -- fail - "b" is missing from the column list diff --git a/src/test/regress/sql/tsdicts.sql b/src/test/regress/sql/tsdicts.sql index 6a2b00369c..cf08410bb2 100644 --- a/src/test/regress/sql/tsdicts.sql +++ b/src/test/regress/sql/tsdicts.sql @@ -254,7 +254,7 @@ CREATE TEXT SEARCH DICTIONARY tsdict_case -- Test grammar for configurations CREATE TEXT SEARCH CONFIGURATION dummy_tst (COPY=english); --- Overriden mapping change with duplicated tokens. +-- Overridden mapping change with duplicated tokens. ALTER TEXT SEARCH CONFIGURATION dummy_tst ALTER MAPPING FOR word, word WITH ispell; -- Not a token supported by the configuration's parser, fails. diff --git a/src/test/subscription/t/004_sync.pl b/src/test/subscription/t/004_sync.pl index e077e255fc..a2d9462395 100644 --- a/src/test/subscription/t/004_sync.pl +++ b/src/test/subscription/t/004_sync.pl @@ -165,7 +165,7 @@ $node_subscriber->safe_psql('postgres', "DROP SUBSCRIPTION tap_sub"); # When DROP SUBSCRIPTION tries to drop the tablesync slot, the slot may not # have been created, which causes the slot to be created after the DROP -# SUSCRIPTION finishes. Such slots eventually get dropped at walsender exit +# SUBSCRIPTION finishes. Such slots eventually get dropped at walsender exit # time. So, to prevent being affected by such ephemeral tablesync slots, we # wait until all the slots have been cleaned. ok( $node_publisher->poll_query_until( diff --git a/src/test/subscription/t/026_stats.pl b/src/test/subscription/t/026_stats.pl index bac1cf3983..d1d68fad9a 100644 --- a/src/test/subscription/t/026_stats.pl +++ b/src/test/subscription/t/026_stats.pl @@ -271,7 +271,7 @@ is( $node_subscriber->safe_psql( my $sub2_oid = $node_subscriber->safe_psql($db, qq(SELECT oid FROM pg_subscription WHERE subname = '$sub2_name')); -# Diassociate the subscription 2 from its replication slot and drop it +# Disassociate the subscription 2 from its replication slot and drop it $node_subscriber->safe_psql( $db, qq( -- 2.39.3 (Apple Git-146) =
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
@ 2024-04-16 08:28         ` Richard Guo <guofenglinux@gmail.com>
  1 sibling, 0 replies; 55+ messages in thread

From: Richard Guo @ 2024-04-16 08:28 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: David Rowley <dgrowleyml@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Alexander Lakhin <exclusion@gmail.com>

On Mon, Apr 15, 2024 at 8:26 PM Daniel Gustafsson <daniel@yesql.se> wrote:

> Thanks.  Collecting all the ones submitted here, as well as a few submitted
> off-list by Alexander, the patch is now a 3-part patchset of cleanups:
>
> 0001 contains the typos and duplicate words fixups, 0002 fixes a parameter
> with
> the wrong name in the prototype and 0003 removes a leftover prototype
> which was
> accidentally left in a refactoring.


BTW, it seems that 0001 needs a rebase over 9dfcac8e15.

Thanks
Richard

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
@ 2024-04-16 13:37         ` Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  1 sibling, 1 reply; 55+ messages in thread

From: Nazir Bilal Yavuz @ 2024-04-16 13:37 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: David Rowley <dgrowleyml@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Alexander Lakhin <exclusion@gmail.com>

Hi,

Thanks for working on this!

On Mon, 15 Apr 2024 at 15:26, Daniel Gustafsson <daniel@yesql.se> wrote:
>
> > On 14 Apr 2024, at 13:19, David Rowley <dgrowleyml@gmail.com> wrote:
> >
> > On Sat, 13 Apr 2024 at 09:17, Daniel Gustafsson <daniel@yesql.se> wrote:
> >>
> >>> On 12 Apr 2024, at 23:15, Heikki Linnakangas <hlinnaka@iki.fi> wrote:
> >>> Here's a few more. I've accumulate these over the past couple of months, keeping them stashed in a branch, adding to it whenever I've spotted a minor typo while reading the code.
> >>
> >> Nice, let's lot all these together.
> >
> > Here are a few additional ones to add to that.
>
> Thanks.  Collecting all the ones submitted here, as well as a few submitted
> off-list by Alexander, the patch is now a 3-part patchset of cleanups:
>
> 0001 contains the typos and duplicate words fixups, 0002 fixes a parameter with
> the wrong name in the prototype and 0003 removes a leftover prototype which was
> accidentally left in a refactoring.

I realized two small typos: 'sgmr' -> 'smgr'. You may want to include
them in 0001.

-- 
Regards,
Nazir Bilal Yavuz
Microsoft





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
@ 2024-04-19 08:13           ` Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  0 siblings, 1 reply; 55+ messages in thread

From: Daniel Gustafsson @ 2024-04-19 08:13 UTC (permalink / raw)
  To: Nazir Bilal Yavuz <byavuz81@gmail.com>; +Cc: David Rowley <dgrowleyml@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Alexander Lakhin <exclusion@gmail.com>

> On 16 Apr 2024, at 15:37, Nazir Bilal Yavuz <byavuz81@gmail.com> wrote:

> I realized two small typos: 'sgmr' -> 'smgr'. You may want to include
> them in 0001.

Thanks, I incorporated these into 0001 before pushing.  All the commits in this
patchset are now applied.

--
Daniel Gustafsson






^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
@ 2024-04-20 04:09             ` David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  0 siblings, 1 reply; 55+ messages in thread

From: David Rowley @ 2024-04-20 04:09 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Alexander Lakhin <exclusion@gmail.com>

On Fri, 19 Apr 2024 at 20:13, Daniel Gustafsson <daniel@yesql.se> wrote:
> Thanks, I incorporated these into 0001 before pushing.  All the commits in this
> patchset are now applied.

Here are a few more to see if it motivates anyone else to do a more
thorough search for another batch.

Fixes duplicate words spanning multiple lines plus an outdated
reference to "streaming read" which was renamed to "read stream" late
in that patch's development.

duplicate words found using:
ag "\s([a-zA-Z]{2,})[\s*]*\n\1\b"
ag "\s([a-zA-Z]{2,})\n(\s*\*\s*)\1\b"

David

Attachments:

assortment_of_typo_fixes.patch (text/plain, 3.0K) download diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index 4a4cf76269..32e7d3c146 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -1122,7 +1122,7 @@ heap_beginscan(Relation relation, Snapshot snapshot, /* * Set up a read stream for sequential scans and TID range scans. This * should be done after initscan() because initscan() allocates the - * BufferAccessStrategy object passed to the streaming read API. + * BufferAccessStrategy object passed to the read stream API. */ if (scan->rs_base.rs_flags & SO_TYPE_SEQSCAN || scan->rs_base.rs_flags & SO_TYPE_TIDRANGESCAN) diff --git a/src/backend/access/heap/vacuumlazy.c b/src/backend/access/heap/vacuumlazy.c index de109acc89..0c5379666b 100644 --- a/src/backend/access/heap/vacuumlazy.c +++ b/src/backend/access/heap/vacuumlazy.c @@ -13,7 +13,7 @@ * autovacuum_work_mem) memory space to keep track of dead TIDs. If the * TID store is full, we must call lazy_vacuum to vacuum indexes (and to vacuum * the pages that we've pruned). This frees up the memory space dedicated to - * to store dead TIDs. + * store dead TIDs. * * In practice VACUUM will often complete its initial pass over the target * heap relation without ever running out of space to store TIDs. This means diff --git a/src/backend/catalog/namespace.c b/src/backend/catalog/namespace.c index 4548a91723..a2510cf80c 100644 --- a/src/backend/catalog/namespace.c +++ b/src/backend/catalog/namespace.c @@ -108,7 +108,7 @@ * (if one exists). * * activeSearchPath is always the actually active path; it points to - * to baseSearchPath which is the list derived from namespace_search_path. + * baseSearchPath which is the list derived from namespace_search_path. * * If baseSearchPathValid is false, then baseSearchPath (and other derived * variables) need to be recomputed from namespace_search_path, or retrieved diff --git a/src/backend/replication/logical/slotsync.c b/src/backend/replication/logical/slotsync.c index cb39adcd0e..ed8104ccb4 100644 --- a/src/backend/replication/logical/slotsync.c +++ b/src/backend/replication/logical/slotsync.c @@ -601,7 +601,7 @@ update_and_persist_local_synced_slot(RemoteSlot *remote_slot, Oid remote_dbid) * metadata of the slot as per the data received from the primary server. * * The slot is created as a temporary slot and stays in the same state until the - * the remote_slot catches up with locally reserved position and local slot is + * remote_slot catches up with locally reserved position and local slot is * updated. The slot is then persisted and is considered as sync-ready for * periodic syncs. * diff --git a/src/backend/storage/smgr/smgr.c b/src/backend/storage/smgr/smgr.c index 100f6454e5..a691aed1f4 100644 --- a/src/backend/storage/smgr/smgr.c +++ b/src/backend/storage/smgr/smgr.c @@ -244,7 +244,7 @@ smgropen(RelFileLocator rlocator, ProcNumber backend) /* * smgrpin() -- Prevent an SMgrRelation object from being destroyed at end of - * of transaction + * transaction */ void smgrpin(SMgrRelation reln)
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2024-04-28 08:05               ` David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  0 siblings, 1 reply; 55+ messages in thread

From: David Rowley @ 2024-04-28 08:05 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Alexander Lakhin <exclusion@gmail.com>

On Sat, 20 Apr 2024 at 16:09, David Rowley <dgrowleyml@gmail.com> wrote:
> Here are a few more to see if it motivates anyone else to do a more
> thorough search for another batch.

I've pushed these now.

David





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2024-05-02 12:00                 ` Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  0 siblings, 1 reply; 55+ messages in thread

From: Alexander Lakhin @ 2024-05-02 12:00 UTC (permalink / raw)
  To: David Rowley <dgrowleyml@gmail.com>; Daniel Gustafsson <daniel@yesql.se>; +Cc: Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

Hello,

28.04.2024 11:05, David Rowley wrote:

> On Sat, 20 Apr 2024 at 16:09, David Rowley <dgrowleyml@gmail.com> wrote:
>> Here are a few more to see if it motivates anyone else to do a more
>> thorough search for another batch.
> I've pushed these now.

Please look also at the list of other typos and inconsistencies I've found
on the master branch:
additional_notnulls -> old_notnulls (cf. b0e96f311)
ATAddCheckConstraint ->? ATAddCheckNNConstraint (cf. b0e96f311)
bt_page_check -> bt_target_page_check (cf. 5ae208720)
calblack_arg -> callback_arg
combinig -> combining
compaining -> complaining
ctllock - remove (cf. 53c2a97a9)
dabatase -> database
eval_const_exprs_mutator -> eval_const_expressions_mutator
ExecEndValuesScan - remove (cf. d060e921e)
get_json_nested_columns -> get_json_table_nested_columns
io_direct -> debug_io_direct
iS ->? IS (a neatnik-ism)
joing ->? join (cf. 20f90a0e4)
_jumbleRangeTblEntry - remove (cf. 367c989cd)
Mallroy -> Mallory
onstead -> instead
procedual -> procedural
psql_safe -> safe_psql
read_quoted_pattern -> read_quoted_string
repertiore -> repertoire
rightfirstdataoffset ->? rightfirstoffset (cf. 5ae208720)
Sincle ->? Since (perhaps the whole sentence could be rephrased)
sslnegotition=direct/requiredirectwould -> sslnegotiation=direct/requiredirect would
sslnegotitation -> sslnegotiation
walreciever -> walreceiver
xid_wrapround -> xid_wraparound

(some of them are located in doc/, so it's not a code-only change)
I've attached the patch for your convenience, though maybe some
of the suggestions are to be discarded.

Best regards,
Alexander

Attachments:

fix-v17-typos.patch (text/x-patch, 15.8K) download diff --git a/contrib/amcheck/verify_nbtree.c b/contrib/amcheck/verify_nbtree.c index 20da4a46ba..70f65b645a 100644 --- a/contrib/amcheck/verify_nbtree.c +++ b/contrib/amcheck/verify_nbtree.c @@ -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) diff --git a/doc/src/sgml/regress.sgml b/doc/src/sgml/regress.sgml index d7e78204ad..f4b00399e4 100644 --- a/doc/src/sgml/regress.sgml +++ b/doc/src/sgml/regress.sgml @@ -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/module/xid_wraparound</filename>. Not enabled by default because it is resource intensive. </para> </listitem> diff --git a/doc/src/sgml/targets-meson.txt b/doc/src/sgml/targets-meson.txt index 1c42dd3028..bd470c87a7 100644 --- a/doc/src/sgml/targets-meson.txt +++ b/doc/src/sgml/targets-meson.txt @@ -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 diff --git a/src/backend/access/brin/brin.c b/src/backend/access/brin/brin.c index bf28400dd8..d0f3848c95 100644 --- a/src/backend/access/brin/brin.c +++ b/src/backend/access/brin/brin.c @@ -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. * diff --git a/src/backend/access/transam/slru.c b/src/backend/access/transam/slru.c index f99ec38a4a..77b05cc0a7 100644 --- a/src/backend/access/transam/slru.c +++ b/src/backend/access/transam/slru.c @@ -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. diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 34a2c71812..c3fd9c1eae 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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) diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index f0278b9c01..1d9f26965b 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -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, diff --git a/src/backend/executor/nodeValuesscan.c b/src/backend/executor/nodeValuesscan.c index 78b512931b..92948917a0 100644 --- a/src/backend/executor/nodeValuesscan.c +++ b/src/backend/executor/nodeValuesscan.c @@ -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" diff --git a/src/backend/nodes/queryjumblefuncs.c b/src/backend/nodes/queryjumblefuncs.c index be823a7f8f..129fb44709 100644 --- a/src/backend/nodes/queryjumblefuncs.c +++ b/src/backend/nodes/queryjumblefuncs.c @@ -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 diff --git a/src/backend/replication/logical/slotsync.c b/src/backend/replication/logical/slotsync.c index 39ff5fe969..389e7db2c6 100644 --- a/src/backend/replication/logical/slotsync.c +++ b/src/backend/replication/logical/slotsync.c @@ -1041,7 +1041,7 @@ ValidateSlotSyncParams(int elevel) /* * Logical slot sync/creation requires wal_level >= logical. * - * Sincle altering the wal_level requires a server restart, so error out + * 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) diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index b3428e2ae4..302cd8e7f3 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -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, diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c index d1b09dedfd..dccd130c91 100644 --- a/src/backend/utils/adt/varlena.c +++ b/src/backend/utils/adt/varlena.c @@ -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/ diff --git a/src/bin/pg_combinebackup/pg_combinebackup.c b/src/bin/pg_combinebackup/pg_combinebackup.c index 027a16a26c..f4a1f49953 100644 --- a/src/bin/pg_combinebackup/pg_combinebackup.c +++ b/src/bin/pg_combinebackup/pg_combinebackup.c @@ -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 diff --git a/src/bin/pg_dump/filter.c b/src/bin/pg_dump/filter.c index 9fdb9cbdcd..3fb93c5f15 100644 --- a/src/bin/pg_dump/filter.c +++ b/src/bin/pg_dump/filter.c @@ -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. diff --git a/src/bin/pg_upgrade/check.c b/src/bin/pg_upgrade/check.c index ad1f8e3bcb..11e705e8ec 100644 --- a/src/bin/pg_upgrade/check.c +++ b/src/bin/pg_upgrade/check.c @@ -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++) diff --git a/src/fe_utils/recovery_gen.c b/src/fe_utils/recovery_gen.c index 733982a82f..c4838a4bdd 100644 --- a/src/fe_utils/recovery_gen.c +++ b/src/fe_utils/recovery_gen.c @@ -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 diff --git a/src/include/catalog/heap.h b/src/include/catalog/heap.h index 21e31f9c97..e446d49b3e 100644 --- a/src/include/catalog/heap.h +++ b/src/include/catalog/heap.h @@ -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); diff --git a/src/include/common/blkreftable.h b/src/include/common/blkreftable.h index 42295b7c52..43b913a82e 100644 --- a/src/include/common/blkreftable.h +++ b/src/include/common/blkreftable.h @@ -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); /* diff --git a/src/include/nodes/pathnodes.h b/src/include/nodes/pathnodes.h index b8141f141a..91a6ce90d8 100644 --- a/src/include/nodes/pathnodes.h +++ b/src/include/nodes/pathnodes.h @@ -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. * diff --git a/src/include/nodes/primnodes.h b/src/include/nodes/primnodes.h index 247cecb4b4..43f5766d73 100644 --- a/src/include/nodes/primnodes.h +++ b/src/include/nodes/primnodes.h @@ -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 { diff --git a/src/interfaces/libpq/t/005_negotiate_encryption.pl b/src/interfaces/libpq/t/005_negotiate_encryption.pl index 1c37f832e7..03a9079f3f 100644 --- a/src/interfaces/libpq/t/005_negotiate_encryption.pl +++ b/src/interfaces/libpq/t/005_negotiate_encryption.pl @@ -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; diff --git a/src/test/authentication/t/006_login_trigger.pl b/src/test/authentication/t/006_login_trigger.pl index 8229490ae2..30d852a96a 100644 --- a/src/test/authentication/t/006_login_trigger.pl +++ b/src/test/authentication/t/006_login_trigger.pl @@ -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', diff --git a/src/test/modules/test_json_parser/t/004_test_parser_perf.pl b/src/test/modules/test_json_parser/t/004_test_parser_perf.pl index c61fdf898a..e82bb3695b 100644 --- a/src/test/modules/test_json_parser/t/004_test_parser_perf.pl +++ b/src/test/modules/test_json_parser/t/004_test_parser_perf.pl @@ -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; diff --git a/src/test/modules/worker_spi/t/001_worker_spi.pl b/src/test/modules/worker_spi/t/001_worker_spi.pl index 177e1c6314..fcd76b43e8 100644 --- a/src/test/modules/worker_spi/t/001_worker_spi.pl +++ b/src/test/modules/worker_spi/t/001_worker_spi.pl @@ -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( diff --git a/src/test/modules/worker_spi/worker_spi.c b/src/test/modules/worker_spi/worker_spi.c index 22177cf2b5..7e1042f4ab 100644 --- a/src/test/modules/worker_spi/worker_spi.c +++ b/src/test/modules/worker_spi/worker_spi.c @@ -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). */
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2024-05-03 14:36                   ` David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  0 siblings, 1 reply; 55+ messages in thread

From: David Rowley @ 2024-05-03 14:36 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: Daniel Gustafsson <daniel@yesql.se>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On Fri, 3 May 2024 at 00:00, Alexander Lakhin <exclusion@gmail.com> wrote:
> (some of them are located in doc/, so it's not a code-only change)
> I've attached the patch for your convenience, though maybe some
> of the suggestions are to be discarded.

Thanks. I was hoping you'd do that.

I pushed the patch after only adjusting the path in the docs which had
"module" rather than "modules".

David





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2024-07-04 17:00                     ` Alexander Lakhin <exclusion@gmail.com>
  2024-07-25 13:45                       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  0 siblings, 2 replies; 55+ messages in thread

From: Alexander Lakhin @ 2024-07-04 17:00 UTC (permalink / raw)
  To: David Rowley <dgrowleyml@gmail.com>; +Cc: Daniel Gustafsson <daniel@yesql.se>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

Hello hackers,

03.05.2024 17:36, David Rowley wrote:
> I pushed the patch after only adjusting the path in the docs which had
> "module" rather than "modules".

Please look at another bunch of inconsistencies/orphaned entities I found
in the tree, with the possible substitutions:
errmsg_buf -> errormsg_buf
(coined by 6b18b3fe2)

NoMovementScanDirectionScans -> NoMovementScanDirection
(introduced with e9aaf0632, discussed in [1], but still seems inaccurate)

XLogReadRecordInternal -> XLogReadRecord
(from 3f1ce9734, align with a comment above: "Start and end point of last
record returned by XLogReadRecord().")

BYPASS_ALLOWCONN -> BGWORKER_BYPASS_ROLELOGINCHECK (see 492217301)

xs_ctup.t_self -> xs_heaptid (see c2fe139c2 and 304532421)

pgStatShmLookupCache -> pgStatLocal.shmem (coined by 5891c7a8e)

smgr_fsm_nblocks and smgr_vm_nblocks -> smgr_cached_nblocks
(see the same comment updated by c5315f4f4)

XID becomes older than GlobalXmin -> XID becomes visible to everyone
(in accordance with dc7420c2c9 src/backend/access/gist/gistutil.c)

gen-rtab - remove (non-existing since db7d1a7b0)

BARRIER_SHOULD_CHECK - remove (unused since a3ed4d1ef)

EXE_EXT - remove (unused since f06b1c598)

endterm - remove
(see 60c90c16c -- Use xreflabel attributes instead of endterm ...)

xl_commit_ts_set, SizeOfCommitTsSet - remove (unused since 08aa89b32)

The corresponding patch is attached for your convenience.

[1] https://www.postgresql.org/message-id/20230131140224.7j6gbcsfwmad2a4b%40liskov

Best regards,
Alexander

Attachments:

fix-inconsistencies.patch (text/x-patch, 8.4K) download diff --git a/contrib/pgcrypto/Makefile b/contrib/pgcrypto/Makefile index 5efa10c334..85f1c94681 100644 --- a/contrib/pgcrypto/Makefile +++ b/contrib/pgcrypto/Makefile @@ -45,8 +45,6 @@ REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \ pgp-armor pgp-decrypt pgp-encrypt pgp-encrypt-md5 $(CF_PGP_TESTS) \ pgp-pubkey-decrypt pgp-pubkey-encrypt pgp-info -EXTRA_CLEAN = gen-rtab - ifdef USE_PGXS PG_CONFIG = pg_config PGXS := $(shell $(PG_CONFIG) --pgxs) diff --git a/doc/src/sgml/README.links b/doc/src/sgml/README.links index 65df9c111f..900e0308b6 100644 --- a/doc/src/sgml/README.links +++ b/doc/src/sgml/README.links @@ -15,10 +15,6 @@ Intra-document Linking linkend= controls the target of the link/xref, required -endterm= - for <xref>, allows the text of the link/xref to be taken from a - different link target title - <link> use to supply text for the link, only uses linkend, requires </link> http://www.oasis-open.org/docbook/documentation/reference/html/link.html diff --git a/src/backend/access/gist/gistvacuum.c b/src/backend/access/gist/gistvacuum.c index 24fb94f473..59372783d0 100644 --- a/src/backend/access/gist/gistvacuum.c +++ b/src/backend/access/gist/gistvacuum.c @@ -643,7 +643,7 @@ gistdeletepage(IndexVacuumInfo *info, IndexBulkDeleteResult *stats, * The page cannot be immediately recycled, because in-progress scans that * saw the downlink might still visit it. Mark the page with the current * next-XID counter, so that we know when it can be recycled. Once that - * XID becomes older than GlobalXmin, we know that all scans that are + * XID becomes visible to everyone, we know that all scans that are * currently in progress must have ended. (That's much more conservative * than needed, but let's keep it safe and simple.) */ diff --git a/src/backend/access/transam/xlogreader.c b/src/backend/access/transam/xlogreader.c index 37d2a57961..45bc17e7f4 100644 --- a/src/backend/access/transam/xlogreader.c +++ b/src/backend/access/transam/xlogreader.c @@ -946,7 +946,7 @@ err: XLogReaderInvalReadState(state); /* - * If an error was written to errmsg_buf, it'll be returned to the caller + * If an error was written to errormsg_buf, it'll be returned to the caller * of XLogReadRecord() after all successfully decoded records from the * read queue. */ diff --git a/src/backend/executor/execCurrent.c b/src/backend/executor/execCurrent.c index 70c62ac110..5285b84d30 100644 --- a/src/backend/executor/execCurrent.c +++ b/src/backend/executor/execCurrent.c @@ -200,7 +200,7 @@ execCurrentOf(CurrentOfExpr *cexpr, /* * For IndexOnlyScan, the tuple stored in ss_ScanTupleSlot may be * a virtual tuple that does not have the ctid column, so we have - * to get the TID from xs_ctup.t_self. + * to get the TID from xs_heaptid. */ IndexScanDesc scan = ((IndexOnlyScanState *) scanstate)->ioss_ScanDesc; diff --git a/src/backend/storage/ipc/procsignal.c b/src/backend/storage/ipc/procsignal.c index 4ed9cedcdd..d9a84b66e0 100644 --- a/src/backend/storage/ipc/procsignal.c +++ b/src/backend/storage/ipc/procsignal.c @@ -88,10 +88,6 @@ typedef struct */ #define NumProcSignalSlots (MaxBackends + NUM_AUXILIARY_PROCS) -/* Check whether the relevant type bit is set in the flags. */ -#define BARRIER_SHOULD_CHECK(flags, type) \ - (((flags) & (((uint32) 1) << (uint32) (type))) != 0) - /* Clear the relevant type bit from the flags. */ #define BARRIER_CLEAR_BIT(flags, type) \ ((flags) &= ~(((uint32) 1) << (uint32) (type))) diff --git a/src/backend/storage/smgr/smgr.c b/src/backend/storage/smgr/smgr.c index a691aed1f4..75e16b9b94 100644 --- a/src/backend/storage/smgr/smgr.c +++ b/src/backend/storage/smgr/smgr.c @@ -733,8 +733,8 @@ smgrtruncate(SMgrRelation reln, ForkNumber *forknum, int nforks, BlockNumber *nb /* * We might as well update the local smgr_cached_nblocks values. The * smgr cache inval message that this function sent will cause other - * backends to invalidate their copies of smgr_fsm_nblocks and - * smgr_vm_nblocks, and these ones too at the next command boundary. + * backends to invalidate their copies of smgr_cached_nblocks, and + * these ones too at the next command boundary. * But these ensure they aren't outright wrong until then. */ reln->smgr_cached_nblocks[forknum[i]] = nblocks[i]; diff --git a/src/backend/utils/activity/pgstat_shmem.c b/src/backend/utils/activity/pgstat_shmem.c index 634b967820..1cd16fc133 100644 --- a/src/backend/utils/activity/pgstat_shmem.c +++ b/src/backend/utils/activity/pgstat_shmem.c @@ -80,7 +80,7 @@ static const dshash_parameters dsh_params = { * compares to their copy of pgStatSharedRefAge on a regular basis. */ static pgstat_entry_ref_hash_hash *pgStatEntryRefHash = NULL; -static int pgStatSharedRefAge = 0; /* cache age of pgStatShmLookupCache */ +static int pgStatSharedRefAge = 0; /* cache age of pgStatLocal.shmem */ /* * Memory contexts containing the pgStatEntryRefHash table and the @@ -861,7 +861,7 @@ pgstat_drop_database_and_contents(Oid dboid) /* * If some of the stats data could not be freed, signal the reference - * holders to run garbage collection of their cached pgStatShmLookupCache. + * holders to run garbage collection of their cached pgStatLocal.shmem. */ if (not_freed_count > 0) pgstat_request_entry_refs_gc(); diff --git a/src/bin/pg_upgrade/pg_upgrade.h b/src/bin/pg_upgrade/pg_upgrade.h index 8afe240bdf..98458bda9b 100644 --- a/src/bin/pg_upgrade/pg_upgrade.h +++ b/src/bin/pg_upgrade/pg_upgrade.h @@ -96,7 +96,6 @@ extern char *output_files[]; #define RMDIR_CMD "@RMDIR /s/q" #define SCRIPT_PREFIX "" #define SCRIPT_EXT "bat" -#define EXE_EXT ".exe" #define ECHO_QUOTE "" #define ECHO_BLANK "." #endif diff --git a/src/include/access/commit_ts.h b/src/include/access/commit_ts.h index 82d3aa8627..c18faea76d 100644 --- a/src/include/access/commit_ts.h +++ b/src/include/access/commit_ts.h @@ -46,17 +46,6 @@ extern int committssyncfiletag(const FileTag *ftag, char *path); #define COMMIT_TS_ZEROPAGE 0x00 #define COMMIT_TS_TRUNCATE 0x10 -typedef struct xl_commit_ts_set -{ - TimestampTz timestamp; - RepOriginId nodeid; - TransactionId mainxid; - /* subxact Xids follow */ -} xl_commit_ts_set; - -#define SizeOfCommitTsSet (offsetof(xl_commit_ts_set, mainxid) + \ - sizeof(TransactionId)) - typedef struct xl_commit_ts_truncate { int64 pageno; diff --git a/src/include/access/sdir.h b/src/include/access/sdir.h index d40d809bd2..c720096f1a 100644 --- a/src/include/access/sdir.h +++ b/src/include/access/sdir.h @@ -17,7 +17,7 @@ /* * Defines the direction for scanning a table or an index. Scans are never - * invoked using NoMovementScanDirectionScans. For convenience, we use the + * invoked using NoMovementScanDirection. For convenience, we use the * values -1 and 1 for backward and forward scans. This allows us to perform * a few mathematical tricks such as what is done in ScanDirectionCombine. */ diff --git a/src/include/access/xlogreader.h b/src/include/access/xlogreader.h index 2e9e5f43eb..5af6dc54e9 100644 --- a/src/include/access/xlogreader.h +++ b/src/include/access/xlogreader.h @@ -224,7 +224,7 @@ struct XLogReaderState * should not be accessed directly. * ---------------------------------------- * Start and end point of the last record read and decoded by - * XLogReadRecordInternal(). NextRecPtr is also used as the position to + * XLogReadRecord(). NextRecPtr is also used as the position to * decode next. Calling XLogBeginRead() sets NextRecPtr and EndRecPtr to * the requested starting position. */ diff --git a/src/test/modules/worker_spi/worker_spi.c b/src/test/modules/worker_spi/worker_spi.c index 7e1042f4ab..de8f46902b 100644 --- a/src/test/modules/worker_spi/worker_spi.c +++ b/src/test/modules/worker_spi/worker_spi.c @@ -174,9 +174,10 @@ worker_spi_main(Datum main_arg) worker_spi_role, flags); /* - * Disable parallel query for workers started with BYPASS_ALLOWCONN or - * BGWORKER_BYPASS_ALLOWCONN so as these don't attempt connections using a - * database or a role that may not allow that. + * Disable parallel query for workers started with + * BGWORKER_BYPASS_ALLOWCONN or BGWORKER_BYPASS_ROLELOGINCHECK so as these + * don't attempt connections using a database or a role that may not allow + * that. */ if ((flags & (BGWORKER_BYPASS_ALLOWCONN | BGWORKER_BYPASS_ROLELOGINCHECK))) SetConfigOption("max_parallel_workers_per_gather", "0",
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2024-07-25 13:45                       ` Daniel Gustafsson <daniel@yesql.se>
  1 sibling, 0 replies; 55+ messages in thread

From: Daniel Gustafsson @ 2024-07-25 13:45 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: David Rowley <dgrowleyml@gmail.com>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

> On 4 Jul 2024, at 19:00, Alexander Lakhin <exclusion@gmail.com> wrote:

> Please look at another bunch of inconsistencies/orphaned entities I found
> in the tree, with the possible substitutions:

Thanks for these, and sorry for the delay in processing them (summer happened
etc).  I've started to go through them and have applied some low-hanging fruit
already, will go over all them.

--
Daniel Gustafsson






^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2024-08-12 11:59                       ` David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  1 sibling, 1 reply; 55+ messages in thread

From: David Rowley @ 2024-08-12 11:59 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; Robert Haas <robertmhaas@gmail.com>; Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Daniel Gustafsson <daniel@yesql.se>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

(I know Daniel mentioned he'd get to these, but the ScanDirection one
was my fault and I needed to clear that off my mind. I did a few
others while on this topic.)

On Fri, 5 Jul 2024 at 05:00, Alexander Lakhin <exclusion@gmail.com> wrote:
> Please look at another bunch of inconsistencies/orphaned entities I found
> in the tree, with the possible substitutions:
> errmsg_buf -> errormsg_buf
> (coined by 6b18b3fe2)

Fixed.

> NoMovementScanDirectionScans -> NoMovementScanDirection
> (introduced with e9aaf0632, discussed in [1], but still seems inaccurate)

Oops. Fixed.

> XLogReadRecordInternal -> XLogReadRecord
> (from 3f1ce9734, align with a comment above: "Start and end point of last
> record returned by XLogReadRecord().")

Fixed.

> BYPASS_ALLOWCONN -> BGWORKER_BYPASS_ROLELOGINCHECK (see 492217301)

Fixed

> xs_ctup.t_self -> xs_heaptid (see c2fe139c2 and 304532421)

Fixed.

> pgStatShmLookupCache -> pgStatLocal.shmem (coined by 5891c7a8e)

Fixed.

> smgr_fsm_nblocks and smgr_vm_nblocks -> smgr_cached_nblocks
> (see the same comment updated by c5315f4f4)

Heikki fixed in 19de089cd.

> XID becomes older than GlobalXmin -> XID becomes visible to everyone
> (in accordance with dc7420c2c9 src/backend/access/gist/gistutil.c)

I'd need to spend more time to understand this.

> gen-rtab - remove (non-existing since db7d1a7b0)

Daniel fixed in cc59f9d0f.

> BARRIER_SHOULD_CHECK - remove (unused since a3ed4d1ef)

I wasn't sure if nothing else external could be using this. The macro
doesn't use any fields that are now gone, so I'm not confident enough
to remove it. Can Robert confirm?

> EXE_EXT - remove (unused since f06b1c598)

Daniel fixed in 88e3da565.

> endterm - remove
> (see 60c90c16c -- Use xreflabel attributes instead of endterm ...)

I read that commit message and I agree it's now unused. I just didn't
get any vibes from the commit message that it shouldn't ever be used
again.  Can Tom confirm?

> xl_commit_ts_set, SizeOfCommitTsSet - remove (unused since 08aa89b32)

I would say it should be removed.  I just didn't because the commit I
had pending fitted into the "typos" category and this didn't quite
fit.

I've attached a patch with the remainder.

David

Attachments:

remaining_typos.patch (application/octet-stream, 2.6K) download diff --git a/doc/src/sgml/README.links b/doc/src/sgml/README.links index 65df9c111f..900e0308b6 100644 --- a/doc/src/sgml/README.links +++ b/doc/src/sgml/README.links @@ -15,10 +15,6 @@ Intra-document Linking linkend= controls the target of the link/xref, required -endterm= - for <xref>, allows the text of the link/xref to be taken from a - different link target title - <link> use to supply text for the link, only uses linkend, requires </link> http://www.oasis-open.org/docbook/documentation/reference/html/link.html diff --git a/src/backend/access/gist/gistvacuum.c b/src/backend/access/gist/gistvacuum.c index 24fb94f473..59372783d0 100644 --- a/src/backend/access/gist/gistvacuum.c +++ b/src/backend/access/gist/gistvacuum.c @@ -643,7 +643,7 @@ gistdeletepage(IndexVacuumInfo *info, IndexBulkDeleteResult *stats, * The page cannot be immediately recycled, because in-progress scans that * saw the downlink might still visit it. Mark the page with the current * next-XID counter, so that we know when it can be recycled. Once that - * XID becomes older than GlobalXmin, we know that all scans that are + * XID becomes visible to everyone, we know that all scans that are * currently in progress must have ended. (That's much more conservative * than needed, but let's keep it safe and simple.) */ diff --git a/src/backend/storage/ipc/procsignal.c b/src/backend/storage/ipc/procsignal.c index 87027f27eb..cabddd7654 100644 --- a/src/backend/storage/ipc/procsignal.c +++ b/src/backend/storage/ipc/procsignal.c @@ -93,10 +93,6 @@ struct ProcSignalHeader */ #define NumProcSignalSlots (MaxBackends + NUM_AUXILIARY_PROCS) -/* Check whether the relevant type bit is set in the flags. */ -#define BARRIER_SHOULD_CHECK(flags, type) \ - (((flags) & (((uint32) 1) << (uint32) (type))) != 0) - /* Clear the relevant type bit from the flags. */ #define BARRIER_CLEAR_BIT(flags, type) \ ((flags) &= ~(((uint32) 1) << (uint32) (type))) diff --git a/src/include/access/commit_ts.h b/src/include/access/commit_ts.h index 82d3aa8627..c18faea76d 100644 --- a/src/include/access/commit_ts.h +++ b/src/include/access/commit_ts.h @@ -46,17 +46,6 @@ extern int committssyncfiletag(const FileTag *ftag, char *path); #define COMMIT_TS_ZEROPAGE 0x00 #define COMMIT_TS_TRUNCATE 0x10 -typedef struct xl_commit_ts_set -{ - TimestampTz timestamp; - RepOriginId nodeid; - TransactionId mainxid; - /* subxact Xids follow */ -} xl_commit_ts_set; - -#define SizeOfCommitTsSet (offsetof(xl_commit_ts_set, mainxid) + \ - sizeof(TransactionId)) - typedef struct xl_commit_ts_truncate { int64 pageno;
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2024-09-02 18:00                         ` Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 55+ messages in thread

From: Alexander Lakhin @ 2024-09-02 18:00 UTC (permalink / raw)
  To: David Rowley <dgrowleyml@gmail.com>; Daniel Gustafsson <daniel@yesql.se>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Robert Haas <robertmhaas@gmail.com>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

Hello,

12.08.2024 14:59, David Rowley wrote:
> (I know Daniel mentioned he'd get to these, but the ScanDirection one
> was my fault and I needed to clear that off my mind. I did a few
> others while on this topic.)

Thank you, David, for working on that!

I've gathered another bunch of defects with the possible substitutions.
Please take a look:
adapated -> adapted

becasue -> because

cancelled -> canceled (introduced by 90f517821, but see 8c9da1441)

cange -> change

comand -> command

CommitTSSLRU -> CommitTsSLRU (introduced by 53c2a97a9; maybe the fix
  should be back-patched...)

connectOptions2 -> pqConnectOptions2 (see 774bcffe4)

Injections points -> Injection points

jsetate -> jsestate

LockShmemSize -> remove the sentence? (added by ec0baf949, outdated with
  a794fb068)

MaybeStartSlotSyncWorker -> LaunchMissingBackgroundProcesses (the logic to
  start B_SLOTSYNC_WORKER moved from the former to the latter function with
  3354f8528)

multixact_member_buffer -> multixact_member_buffers

per_data_data -> per_buffer_data (see code below the comment; introduced by
  b5a9b18cd)

per_buffer_private -> remove the function declaration? (the duplicate
  declaration was added by a858be17c)

performancewise -> performance-wise? (coined by a7f107df2)

pgstat_add_kind -> pgstat_register_kind (see 7949d9594)

pg_signal_autovacuum -> pg_signal_autovacuum_worker (see d2b74882c)

recoveery -> recovery

RegisteredWorker -> RegisteredBgWorker

RUNNING_XACT -> RUNNING_XACTS

sanpshot -> snapshot

TypeEntry -> TypeCacheEntry (align with AttoptCacheEntry, from the same
  commit 40064a8ee)

The corresponding patch is attached for your convenience.

Best regards,
Alexander

Attachments:

fix-typos+inconsistencies.patch (text/x-patch, 13.1K) download diff --git a/contrib/test_decoding/specs/skip_snapshot_restore.spec b/contrib/test_decoding/specs/skip_snapshot_restore.spec index 3f1fb6f02c7..7b35dbcc9f3 100644 --- a/contrib/test_decoding/specs/skip_snapshot_restore.spec +++ b/contrib/test_decoding/specs/skip_snapshot_restore.spec @@ -39,7 +39,7 @@ step "s2_get_changes_slot0" { SELECT data FROM pg_logical_slot_get_changes('slot # serializes consistent snapshots to the disk at LSNs where are before # s0-transaction's commit. After s0-transaction commits, "s1_init" resumes but # must not restore any serialized snapshots and will reach the consistent state -# when decoding a RUNNING_XACT record generated after s0-transaction's commit. +# when decoding a RUNNING_XACTS record generated after s0-transaction's commit. # We check if the get_changes on 'slot1' will not return any s0-transaction's # changes as its confirmed_flush_lsn will be after the s0-transaction's commit # record. diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml index 9bc23a9a938..af7864a1b5b 100644 --- a/doc/src/sgml/xfunc.sgml +++ b/doc/src/sgml/xfunc.sgml @@ -3891,8 +3891,8 @@ static const PgStat_KindInfo custom_stats = { it with <literal>pgstat_register_kind</literal> and a unique ID used to store the entries related to this type of statistics: <programlisting> -extern PgStat_Kind pgstat_add_kind(PgStat_Kind kind, - const PgStat_KindInfo *kind_info); +extern PgStat_Kind pgstat_register_kind(PgStat_Kind kind, + const PgStat_KindInfo *kind_info); </programlisting> While developing a new extension, use <literal>PGSTAT_KIND_EXPERIMENTAL</literal> for diff --git a/src/backend/access/transam/multixact.c b/src/backend/access/transam/multixact.c index a03d56541d0..8c37d7eba76 100644 --- a/src/backend/access/transam/multixact.c +++ b/src/backend/access/transam/multixact.c @@ -2017,7 +2017,7 @@ check_multixact_offset_buffers(int *newval, void **extra, GucSource source) } /* - * GUC check_hook for multixact_member_buffer + * GUC check_hook for multixact_member_buffers */ bool check_multixact_member_buffers(int *newval, void **extra, GucSource source) diff --git a/src/backend/commands/matview.c b/src/backend/commands/matview.c index 91f0fd6ea3e..b2457f121a7 100644 --- a/src/backend/commands/matview.c +++ b/src/backend/commands/matview.c @@ -382,7 +382,7 @@ RefreshMatViewByOid(Oid matviewOid, bool is_create, bool skipData, * command tag is left false in cmdtaglist.h. Otherwise, the change of * completion tag output might break applications using it. * - * When called from CREATE MATERIALIZED VIEW comand, the rowcount is + * When called from CREATE MATERIALIZED VIEW command, the rowcount is * displayed with the command tag CMDTAG_SELECT. */ if (qc) diff --git a/src/backend/commands/waitlsn.c b/src/backend/commands/waitlsn.c index d9cf9e7d75e..d7065726749 100644 --- a/src/backend/commands/waitlsn.c +++ b/src/backend/commands/waitlsn.c @@ -369,7 +369,7 @@ pg_wal_replay_wait(PG_FUNCTION_ARGS) */ InvalidateCatalogSnapshot(); - /* Give up if there is still an active or registered sanpshot. */ + /* Give up if there is still an active or registered snapshot. */ if (GetOldestSnapshot()) ereport(ERROR, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), diff --git a/src/backend/executor/execExprInterp.c b/src/backend/executor/execExprInterp.c index 77394e76c37..a6c47f61e0d 100644 --- a/src/backend/executor/execExprInterp.c +++ b/src/backend/executor/execExprInterp.c @@ -1101,7 +1101,7 @@ ExecInterpExpr(ExprState *state, ExprContext *econtext, bool *isnull) EEO_CASE(EEOP_PARAM_SET) { - /* out of line, unlikely to matter performancewise */ + /* out of line, unlikely to matter performance-wise */ ExecEvalParamSet(state, op, econtext); EEO_NEXT(); } @@ -4762,7 +4762,7 @@ ExecEvalJsonCoercionFinish(ExprState *state, ExprEvalStep *op) if (SOFT_ERROR_OCCURRED(&jsestate->escontext)) { /* - * jsestate->error or jsetate->empty being set means that the error + * jsestate->error or jsestate->empty being set means that the error * occurred when coercing the JsonBehavior value. Throw the error in * that case with the actual coercion error message shown in the * DETAIL part. diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index a6fff93db34..59da773ee1f 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -2628,7 +2628,7 @@ CleanupBackend(Backend *bp, BackgroundWorkerStopNotifications(bp->pid); /* - * If it was a background worker, also update its RegisteredWorker entry. + * If it was a background worker, also update its RegisteredBgWorker entry. */ if (bp->bkend_type == BACKEND_TYPE_BGWORKER) { diff --git a/src/backend/replication/logical/slotsync.c b/src/backend/replication/logical/slotsync.c index 51072297fd3..33378bacea6 100644 --- a/src/backend/replication/logical/slotsync.c +++ b/src/backend/replication/logical/slotsync.c @@ -83,7 +83,7 @@ * this flag is set. Note that we don't need to reset this variable as after * promotion the slot sync worker won't be restarted because the pmState * changes to PM_RUN from PM_HOT_STANDBY and we don't support demoting - * primary without restarting the server. See MaybeStartSlotSyncWorker. + * primary without restarting the server. See LaunchMissingBackgroundProcesses. * * The 'syncing' flag is needed to prevent concurrent slot syncs to avoid slot * overwrites. diff --git a/src/backend/storage/aio/read_stream.c b/src/backend/storage/aio/read_stream.c index 93cdd35fea0..064861e5fb7 100644 --- a/src/backend/storage/aio/read_stream.c +++ b/src/backend/storage/aio/read_stream.c @@ -449,7 +449,7 @@ read_stream_begin_impl(int flags, queue_size = max_pinned_buffers + 1; /* - * Allocate the object, the buffers, the ios and per_data_data space in + * Allocate the object, the buffers, the ios and per_buffer_data space in * one big chunk. Though we have queue_size buffers, we want to be able * to assume that all the buffers for a single read are contiguous (i.e. * don't wrap around halfway through), so we allow temporary overflows of diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 6dbc41dae70..c239888eec6 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -395,8 +395,7 @@ LockManagerShmemInit(void) bool found; /* - * Compute init/max size to request for lock hashtables. Note these - * calculations must agree with LockShmemSize! + * Compute init/max size to request for lock hashtables. */ max_table_size = NLOCKENTS(); init_table_size = max_table_size / 2; diff --git a/src/backend/storage/lmgr/lwlock.c b/src/backend/storage/lmgr/lwlock.c index e765754d805..db6ed784ab3 100644 --- a/src/backend/storage/lmgr/lwlock.c +++ b/src/backend/storage/lmgr/lwlock.c @@ -158,7 +158,7 @@ static const char *const BuiltinTrancheNames[] = { [LWTRANCHE_LAUNCHER_HASH] = "LogicalRepLauncherHash", [LWTRANCHE_DSM_REGISTRY_DSA] = "DSMRegistryDSA", [LWTRANCHE_DSM_REGISTRY_HASH] = "DSMRegistryHash", - [LWTRANCHE_COMMITTS_SLRU] = "CommitTSSLRU", + [LWTRANCHE_COMMITTS_SLRU] = "CommitTsSLRU", [LWTRANCHE_MULTIXACTOFFSET_SLRU] = "MultixactOffsetSLRU", [LWTRANCHE_MULTIXACTMEMBER_SLRU] = "MultixactMemberSLRU", [LWTRANCHE_NOTIFY_SLRU] = "NotifySLRU", diff --git a/src/backend/utils/cache/typcache.c b/src/backend/utils/cache/typcache.c index 0b9e60845b2..2ec136b7d30 100644 --- a/src/backend/utils/cache/typcache.c +++ b/src/backend/utils/cache/typcache.c @@ -367,9 +367,9 @@ lookup_type_cache(Oid type_id, int flags) ctl.entrysize = sizeof(TypeCacheEntry); /* - * TypeEntry takes hash value from the system cache. For TypeCacheHash - * we use the same hash in order to speedup search by hash value. This - * is used by hash_seq_init_with_hash_value(). + * TypeCacheEntry takes hash value from the system cache. For + * TypeCacheHash we use the same hash in order to speedup search by + * hash value. This is used by hash_seq_init_with_hash_value(). */ ctl.hash = type_cache_syshash; diff --git a/src/bin/pg_combinebackup/t/008_promote.pl b/src/bin/pg_combinebackup/t/008_promote.pl index 1154a5d8b22..0ee96ff037c 100644 --- a/src/bin/pg_combinebackup/t/008_promote.pl +++ b/src/bin/pg_combinebackup/t/008_promote.pl @@ -54,7 +54,7 @@ recovery_target_action = 'pause' EOM $node2->start(); -# Wait until recoveery pauses, then promote. +# Wait until recovery pauses, then promote. $node2->poll_query_until('postgres', "SELECT pg_get_wal_replay_pause_state() = 'paused';"); $node2->safe_psql('postgres', "SELECT pg_promote()"); @@ -65,7 +65,7 @@ INSERT INTO mytable VALUES (2, 'blackberry'); EOM # Now take an incremental backup. If WAL summarization didn't follow the -# timeline cange correctly, something should break at this point. +# timeline change correctly, something should break at this point. my $backup2path = $node1->backup_dir . '/backup2'; $node2->command_ok( [ 'pg_basebackup', '-D', $backup2path, '--no-sync', '-cfast', diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index be265aa05a4..066dccbd841 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -1715,7 +1715,7 @@ ExecQueryAndProcessResults(const char *query, { /* * Display the current chunk of results, unless the output - * stream stopped working or we got cancelled. We skip use of + * stream stopped working or we got canceled. We skip use of * PrintQueryResult and go directly to printQuery, so that we * can pass the correct is_pager value and because we don't * want PrintQueryStatus to happen yet. Above, we rejected diff --git a/src/fe_utils/astreamer_gzip.c b/src/fe_utils/astreamer_gzip.c index 0d12b9bce7a..ca5be6423a1 100644 --- a/src/fe_utils/astreamer_gzip.c +++ b/src/fe_utils/astreamer_gzip.c @@ -13,7 +13,7 @@ * taken here is less flexible, because a writer can only write to a file, * while a compressor can write to a subsequent astreamer which is free * to do whatever it likes. The reason it's like this is because this - * code was adapated from old, less-modular pg_basebackup code that used + * code was adapted from old, less-modular pg_basebackup code that used * the same APIs that astreamer_gzip_writer now uses, and it didn't seem * necessary to change anything at the time. * diff --git a/src/include/storage/read_stream.h b/src/include/storage/read_stream.h index 4e599904f26..42a623bfc54 100644 --- a/src/include/storage/read_stream.h +++ b/src/include/storage/read_stream.h @@ -66,7 +66,6 @@ extern ReadStream *read_stream_begin_smgr_relation(int flags, ReadStreamBlockNumberCB callback, void *callback_private_data, size_t per_buffer_data_size); -extern Buffer read_stream_next_buffer(ReadStream *stream, void **per_buffer_private); extern void read_stream_reset(ReadStream *stream); extern void read_stream_end(ReadStream *stream); diff --git a/src/include/utils/injection_point.h b/src/include/utils/injection_point.h index b4fc677c9b4..b1f06b25998 100644 --- a/src/include/utils/injection_point.h +++ b/src/include/utils/injection_point.h @@ -12,7 +12,7 @@ #define INJECTION_POINT_H /* - * Injections points require --enable-injection-points. + * Injection points require --enable-injection-points. */ #ifdef USE_INJECTION_POINTS #define INJECTION_POINT_LOAD(name) InjectionPointLoad(name) diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 3fa2dd864fe..9febdaa2885 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -948,7 +948,7 @@ fillPGconn(PGconn *conn, PQconninfoOption *connOptions) * Copy over option values from srcConn to dstConn * * Don't put anything cute here --- intelligence should be in - * connectOptions2 ... + * pqConnectOptions2 ... * * Returns true on success. On failure, returns false and sets error message of * dstConn. diff --git a/src/test/modules/test_misc/t/006_signal_autovacuum.pl b/src/test/modules/test_misc/t/006_signal_autovacuum.pl index 51bdefe24aa..929253f7542 100644 --- a/src/test/modules/test_misc/t/006_signal_autovacuum.pl +++ b/src/test/modules/test_misc/t/006_signal_autovacuum.pl @@ -67,7 +67,7 @@ like( my $offset = -s $node->logfile; -# Role with pg_signal_autovacuum can terminate autovacuum worker. +# Role with pg_signal_autovacuum_worker can terminate autovacuum worker. my $terminate_with_pg_signal_av = $node->psql( 'postgres', qq( SET ROLE regress_worker_role; diff --git a/src/test/subscription/t/021_twophase.pl b/src/test/subscription/t/021_twophase.pl index 19147f31e21..98fe59ac5a4 100644 --- a/src/test/subscription/t/021_twophase.pl +++ b/src/test/subscription/t/021_twophase.pl @@ -76,7 +76,7 @@ $node_publisher->safe_psql( INSERT INTO tab_full VALUES (11); PREPARE TRANSACTION 'test_prepared_tab_full';"); -# Confirm the ERROR is reported becasue max_prepared_transactions is zero +# Confirm the ERROR is reported because max_prepared_transactions is zero $node_subscriber->wait_for_log( qr/ERROR: ( [A-Z0-9]+:)? prepared transactions are disabled/);
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2024-09-03 05:24                           ` Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 55+ messages in thread

From: Michael Paquier @ 2024-09-03 05:24 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: David Rowley <dgrowleyml@gmail.com>; Daniel Gustafsson <daniel@yesql.se>; Tom Lane <tgl@sss.pgh.pa.us>; Robert Haas <robertmhaas@gmail.com>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On Mon, Sep 02, 2024 at 09:00:00PM +0300, Alexander Lakhin wrote:
> I've gathered another bunch of defects with the possible substitutions.
> Please take a look:
> pgstat_add_kind -> pgstat_register_kind (see 7949d9594)

And here I thought I took care of these inconsistencies.  This one is
on me so I'll go fix that in a bit, with the rest while on it.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
@ 2024-09-03 05:51                             ` Michael Paquier <michael@paquier.xyz>
  2024-09-03 10:00                               ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  0 siblings, 2 replies; 55+ messages in thread

From: Michael Paquier @ 2024-09-03 05:51 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: David Rowley <dgrowleyml@gmail.com>; Daniel Gustafsson <daniel@yesql.se>; Tom Lane <tgl@sss.pgh.pa.us>; Robert Haas <robertmhaas@gmail.com>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On Tue, Sep 03, 2024 at 02:24:32PM +0900, Michael Paquier wrote:
> On Mon, Sep 02, 2024 at 09:00:00PM +0300, Alexander Lakhin wrote:
> > I've gathered another bunch of defects with the possible substitutions.
> > Please take a look:
> > pgstat_add_kind -> pgstat_register_kind (see 7949d9594)
> 
> And here I thought I took care of these inconsistencies.  This one is
> on me so I'll go fix that in a bit, with the rest while on it.

And done that.

The bit about CommitTSSLRU -> CommitTsSLRU in lwlock.c should be
backpatched down to 17, indeed, but the branch is frozen until the RC
tag lands in the tree, so I have left it out for now. The tag should
show up tomorrow or so.  Good thing that you have noticed this issue
before the release.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
@ 2024-09-03 10:00                               ` Daniel Gustafsson <daniel@yesql.se>
  2024-09-04 01:25                                 ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  1 sibling, 1 reply; 55+ messages in thread

From: Daniel Gustafsson @ 2024-09-03 10:00 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: Alexander Lakhin <exclusion@gmail.com>; David Rowley <dgrowleyml@gmail.com>; Tom Lane <tgl@sss.pgh.pa.us>; Robert Haas <robertmhaas@gmail.com>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

> On 3 Sep 2024, at 07:51, Michael Paquier <michael@paquier.xyz> wrote:
> 
> On Tue, Sep 03, 2024 at 02:24:32PM +0900, Michael Paquier wrote:
>> On Mon, Sep 02, 2024 at 09:00:00PM +0300, Alexander Lakhin wrote:
>>> I've gathered another bunch of defects with the possible substitutions.
>>> Please take a look:
>>> pgstat_add_kind -> pgstat_register_kind (see 7949d9594)
>> 
>> And here I thought I took care of these inconsistencies.  This one is
>> on me so I'll go fix that in a bit, with the rest while on it.
> 
> And done that.
> 
> The bit about CommitTSSLRU -> CommitTsSLRU in lwlock.c should be
> backpatched down to 17, indeed, but the branch is frozen until the RC
> tag lands in the tree, so I have left it out for now. The tag should
> show up tomorrow or so.  Good thing that you have noticed this issue
> before the release.

I see your v17 typo fixes, and raise you a few more.  Commit 31a98934d169 from
just now contains 2 (out of 3) sets of typos introduced in v17 so they should
follow along when you push the ones mentioned here.

--
Daniel Gustafsson






^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 10:00                               ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
@ 2024-09-04 01:25                                 ` Michael Paquier <michael@paquier.xyz>
  2024-09-04 08:23                                   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  0 siblings, 1 reply; 55+ messages in thread

From: Michael Paquier @ 2024-09-04 01:25 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: Alexander Lakhin <exclusion@gmail.com>; David Rowley <dgrowleyml@gmail.com>; Tom Lane <tgl@sss.pgh.pa.us>; Robert Haas <robertmhaas@gmail.com>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On Tue, Sep 03, 2024 at 12:00:13PM +0200, Daniel Gustafsson wrote:
> I see your v17 typo fixes, and raise you a few more.  Commit 31a98934d169 from
> just now contains 2 (out of 3) sets of typos introduced in v17 so they should
> follow along when you push the ones mentioned here.

Is that really mandatory?  I tend to worry about back branches only
when this stuff is user-visible, like in the docs or error messages.
This opinion varies for each individual, of course.  That's just my
lazy opinion.

CommitTSSLRU -> CommitTsSLRU is user-visible, showing up in
pg_stat_activity.  Fixed this one with 08b9b9e043bb, as the tag for
17rc1 has been pushed.

Picking f747bc18f7f2 and 75c5231a00f3 on REL_17_STABLE leads to the
attached, I think, without the conflicts.
--
Michael

Attachments: download all (3 files, .tar.gz)

0001-Fix-typos-and-grammar-in-code-comments-and-docs.patch (text/x-diff, 8.1K) download From f747bc18f7f205795177cce6a93e19169bd0467f Mon Sep 17 00:00:00 2001 From: Michael Paquier <michael@paquier.xyz> Date: Tue, 3 Sep 2024 14:49:04 +0900 Subject: [PATCH 1/2] Fix typos and grammar in code comments and docs Author: Alexander Lakhin Discussion: https://postgr.es/m/f7e514cf-2446-21f1-a5d2-8c089a6e2168@gmail.com --- src/include/utils/injection_point.h | 2 +- src/backend/access/transam/multixact.c | 2 +- src/backend/executor/execExprInterp.c | 2 +- src/backend/replication/logical/slotsync.c | 2 +- src/backend/storage/aio/read_stream.c | 2 +- src/backend/storage/lmgr/lock.c | 2 +- src/bin/pg_combinebackup/t/008_promote.pl | 4 ++-- src/bin/psql/common.c | 2 +- src/interfaces/libpq/fe-connect.c | 2 +- src/test/subscription/t/021_twophase.pl | 2 +- contrib/test_decoding/specs/skip_snapshot_restore.spec | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/include/utils/injection_point.h b/src/include/utils/injection_point.h index 6e417cedc6..8041e4fe0f 100644 --- a/src/include/utils/injection_point.h +++ b/src/include/utils/injection_point.h @@ -12,7 +12,7 @@ #define INJECTION_POINT_H /* - * Injections points require --enable-injection-points. + * Injection points require --enable-injection-points. */ #ifdef USE_INJECTION_POINTS #define INJECTION_POINT(name) InjectionPointRun(name) diff --git a/src/backend/access/transam/multixact.c b/src/backend/access/transam/multixact.c index b7b47ef076..42ea9ba5b4 100644 --- a/src/backend/access/transam/multixact.c +++ b/src/backend/access/transam/multixact.c @@ -2009,7 +2009,7 @@ check_multixact_offset_buffers(int *newval, void **extra, GucSource source) } /* - * GUC check_hook for multixact_member_buffer + * GUC check_hook for multixact_member_buffers */ bool check_multixact_member_buffers(int *newval, void **extra, GucSource source) diff --git a/src/backend/executor/execExprInterp.c b/src/backend/executor/execExprInterp.c index c32ac7c509..ff76e10bd3 100644 --- a/src/backend/executor/execExprInterp.c +++ b/src/backend/executor/execExprInterp.c @@ -4626,7 +4626,7 @@ ExecEvalJsonCoercionFinish(ExprState *state, ExprEvalStep *op) if (SOFT_ERROR_OCCURRED(&jsestate->escontext)) { /* - * jsestate->error or jsetate->empty being set means that the error + * jsestate->error or jsestate->empty being set means that the error * occurred when coercing the JsonBehavior value. Throw the error in * that case with the actual coercion error message shown in the * DETAIL part. diff --git a/src/backend/replication/logical/slotsync.c b/src/backend/replication/logical/slotsync.c index ebfbaebe16..fe0478e373 100644 --- a/src/backend/replication/logical/slotsync.c +++ b/src/backend/replication/logical/slotsync.c @@ -83,7 +83,7 @@ * this flag is set. Note that we don't need to reset this variable as after * promotion the slot sync worker won't be restarted because the pmState * changes to PM_RUN from PM_HOT_STANDBY and we don't support demoting - * primary without restarting the server. See MaybeStartSlotSyncWorker. + * primary without restarting the server. See LaunchMissingBackgroundProcesses. * * The 'syncing' flag is needed to prevent concurrent slot syncs to avoid slot * overwrites. diff --git a/src/backend/storage/aio/read_stream.c b/src/backend/storage/aio/read_stream.c index a6c50b2ae2..f04c788a46 100644 --- a/src/backend/storage/aio/read_stream.c +++ b/src/backend/storage/aio/read_stream.c @@ -450,7 +450,7 @@ read_stream_begin_relation(int flags, queue_size = max_pinned_buffers + 1; /* - * Allocate the object, the buffers, the ios and per_data_data space in + * Allocate the object, the buffers, the ios and per_buffer_data space in * one big chunk. Though we have queue_size buffers, we want to be able * to assume that all the buffers for a single read are contiguous (i.e. * don't wrap around halfway through), so we allow temporary overflows of diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 0400a50777..ba77c71baa 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -398,7 +398,7 @@ InitLocks(void) /* * Compute init/max size to request for lock hashtables. Note these - * calculations must agree with LockShmemSize! + * calculations must agree with LockManagerShmemSize! */ max_table_size = NLOCKENTS(); init_table_size = max_table_size / 2; diff --git a/src/bin/pg_combinebackup/t/008_promote.pl b/src/bin/pg_combinebackup/t/008_promote.pl index 1154a5d8b2..0ee96ff037 100644 --- a/src/bin/pg_combinebackup/t/008_promote.pl +++ b/src/bin/pg_combinebackup/t/008_promote.pl @@ -54,7 +54,7 @@ recovery_target_action = 'pause' EOM $node2->start(); -# Wait until recoveery pauses, then promote. +# Wait until recovery pauses, then promote. $node2->poll_query_until('postgres', "SELECT pg_get_wal_replay_pause_state() = 'paused';"); $node2->safe_psql('postgres', "SELECT pg_promote()"); @@ -65,7 +65,7 @@ INSERT INTO mytable VALUES (2, 'blackberry'); EOM # Now take an incremental backup. If WAL summarization didn't follow the -# timeline cange correctly, something should break at this point. +# timeline change correctly, something should break at this point. my $backup2path = $node1->backup_dir . '/backup2'; $node2->command_ok( [ 'pg_basebackup', '-D', $backup2path, '--no-sync', '-cfast', diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index fe8e049c4c..ba8244aba2 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -1680,7 +1680,7 @@ ExecQueryAndProcessResults(const char *query, { /* * Display the current chunk of results, unless the output - * stream stopped working or we got cancelled. We skip use of + * stream stopped working or we got canceled. We skip use of * PrintQueryResult and go directly to printQuery, so that we * can pass the correct is_pager value and because we don't * want PrintQueryStatus to happen yet. Above, we rejected diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 360d9a4547..01bd48a675 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -947,7 +947,7 @@ fillPGconn(PGconn *conn, PQconninfoOption *connOptions) * Copy over option values from srcConn to dstConn * * Don't put anything cute here --- intelligence should be in - * connectOptions2 ... + * pqConnectOptions2 ... * * Returns true on success. On failure, returns false and sets error message of * dstConn. diff --git a/src/test/subscription/t/021_twophase.pl b/src/test/subscription/t/021_twophase.pl index e635be74c6..0cdafc9791 100644 --- a/src/test/subscription/t/021_twophase.pl +++ b/src/test/subscription/t/021_twophase.pl @@ -76,7 +76,7 @@ $node_publisher->safe_psql( INSERT INTO tab_full VALUES (11); PREPARE TRANSACTION 'test_prepared_tab_full';"); -# Confirm the ERROR is reported becasue max_prepared_transactions is zero +# Confirm the ERROR is reported because max_prepared_transactions is zero $node_subscriber->wait_for_log( qr/ERROR: ( [A-Z0-9]+:)? prepared transactions are disabled/); diff --git a/contrib/test_decoding/specs/skip_snapshot_restore.spec b/contrib/test_decoding/specs/skip_snapshot_restore.spec index 3f1fb6f02c..7b35dbcc9f 100644 --- a/contrib/test_decoding/specs/skip_snapshot_restore.spec +++ b/contrib/test_decoding/specs/skip_snapshot_restore.spec @@ -39,7 +39,7 @@ step "s2_get_changes_slot0" { SELECT data FROM pg_logical_slot_get_changes('slot # serializes consistent snapshots to the disk at LSNs where are before # s0-transaction's commit. After s0-transaction commits, "s1_init" resumes but # must not restore any serialized snapshots and will reach the consistent state -# when decoding a RUNNING_XACT record generated after s0-transaction's commit. +# when decoding a RUNNING_XACTS record generated after s0-transaction's commit. # We check if the get_changes on 'slot1' will not return any s0-transaction's # changes as its confirmed_flush_lsn will be after the s0-transaction's commit # record. -- 2.45.2
0002-Fix-typos-in-code-comments-and-test-data.patch (text/x-diff, 4.2K) download From 75c5231a00f3a1cb84a18320f15fa0284d9b1235 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson <dgustafsson@postgresql.org> Date: Tue, 3 Sep 2024 11:33:38 +0200 Subject: [PATCH 2/2] Fix typos in code comments and test data The typos in 005_negotiate_encryption.pl and pg_combinebackup.c shall be backported to v17 where they were introduced. Backpatch-through: v17 Discussion: https://postgr.es/m/Ztaj7BkN4658OMxF@paquier.xyz --- src/bin/pg_combinebackup/pg_combinebackup.c | 2 +- src/interfaces/libpq/t/005_negotiate_encryption.pl | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bin/pg_combinebackup/pg_combinebackup.c b/src/bin/pg_combinebackup/pg_combinebackup.c index a29ed23f3e..ea47c0a369 100644 --- a/src/bin/pg_combinebackup/pg_combinebackup.c +++ b/src/bin/pg_combinebackup/pg_combinebackup.c @@ -849,7 +849,7 @@ process_directory_recursively(Oid tsoid, * * We set is_pg_wal for the toplevel WAL directory and all of its * subdirectories, because those files are not included in the backup - * manifest and hence need special treatement. (Since incremental backup + * manifest and hence need special treatment. (Since incremental backup * does not exist in pre-v10 versions, we don't have to worry about the * old pg_xlog naming.) * diff --git a/src/interfaces/libpq/t/005_negotiate_encryption.pl b/src/interfaces/libpq/t/005_negotiate_encryption.pl index c3f70d31bc..294730e360 100644 --- a/src/interfaces/libpq/t/005_negotiate_encryption.pl +++ b/src/interfaces/libpq/t/005_negotiate_encryption.pl @@ -239,7 +239,7 @@ testuser disable disable postgres connect, authok . . require postgres connect, sslreject -> fail . . . direct connect, directsslreject -> fail -# sslnegotiation=direct is not acccepted unless sslmode=require or stronger +# sslnegotiation=direct is not accepted unless sslmode=require or stronger * * disable direct - -> fail * * allow direct - -> fail * * prefer direct - -> fail @@ -302,7 +302,7 @@ nossluser . disable postgres connect, authok . . require postgres connect, sslaccept, authfail -> fail . . require direct connect, directsslaccept, authfail -> fail -# sslnegotiation=direct is not acccepted unless sslmode=require or stronger +# sslnegotiation=direct is not accepted unless sslmode=require or stronger * * disable direct - -> fail * * allow direct - -> fail * * prefer direct - -> fail @@ -376,7 +376,7 @@ nogssuser disable disable postgres connect, authok . . require postgres connect, gssaccept, authfail -> fail # If both GSSAPI and sslmode are required, and GSS is not available -> fail . . . direct connect, gssaccept, authfail -> fail # If both GSSAPI and sslmode are required, and GSS is not available -> fail -# sslnegotiation=direct is not acccepted unless sslmode=require or stronger +# sslnegotiation=direct is not accepted unless sslmode=require or stronger * * disable direct - -> fail * * allow direct - -> fail * * prefer direct - -> fail @@ -501,7 +501,7 @@ nossluser disable disable postgres connect, authok . require * postgres connect, gssaccept, authok -> gss . . require direct connect, gssaccept, authok -> gss -# sslnegotiation=direct is not acccepted unless sslmode=require or stronger +# sslnegotiation=direct is not accepted unless sslmode=require or stronger * * disable direct - -> fail * * allow direct - -> fail * * prefer direct - -> fail -- 2.45.2
signature.asc (application/pgp-signature, 832B) download ^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 10:00                               ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-09-04 01:25                                 ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
@ 2024-09-04 08:23                                   ` Daniel Gustafsson <daniel@yesql.se>
  2024-09-04 15:34                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  0 siblings, 1 reply; 55+ messages in thread

From: Daniel Gustafsson @ 2024-09-04 08:23 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: Alexander Lakhin <exclusion@gmail.com>; David Rowley <dgrowleyml@gmail.com>; Tom Lane <tgl@sss.pgh.pa.us>; Robert Haas <robertmhaas@gmail.com>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

> On 4 Sep 2024, at 03:25, Michael Paquier <michael@paquier.xyz> wrote:
> 
> On Tue, Sep 03, 2024 at 12:00:13PM +0200, Daniel Gustafsson wrote:
>> I see your v17 typo fixes, and raise you a few more.  Commit 31a98934d169 from
>> just now contains 2 (out of 3) sets of typos introduced in v17 so they should
>> follow along when you push the ones mentioned here.
> 
> Is that really mandatory?  I tend to worry about back branches only
> when this stuff is user-visible, like in the docs or error messages.
> This opinion varies for each individual, of course.  That's just my
> lazy opinion.

Not mandatory at all, but since you were prepping a typo backpatch anyways I
figured these could join to put a small dent in reducing risks for future
backports.

--
Daniel Gustafsson






^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 10:00                               ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-09-04 01:25                                 ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-04 08:23                                   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
@ 2024-09-04 15:34                                     ` David Rowley <dgrowleyml@gmail.com>
  2024-09-05 00:03                                       ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-06 09:42                                       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  0 siblings, 2 replies; 55+ messages in thread

From: David Rowley @ 2024-09-04 15:34 UTC (permalink / raw)
  To: Daniel Gustafsson <daniel@yesql.se>; +Cc: Michael Paquier <michael@paquier.xyz>; Alexander Lakhin <exclusion@gmail.com>; Tom Lane <tgl@sss.pgh.pa.us>; Robert Haas <robertmhaas@gmail.com>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On Wed, 4 Sept 2024 at 20:24, Daniel Gustafsson <daniel@yesql.se> wrote:
> Not mandatory at all, but since you were prepping a typo backpatch anyways I
> figured these could join to put a small dent in reducing risks for future
> backports.

I think this is pretty good logic.  I think fixing comment typos in
ancient code and backpatching to all supported versions isn't good use
of time, but fixing a typo in "recent" code and backpatching to where
that code was added seems useful. Newer code is more likely to need
bug fixes in the future, so going to a bit more effort to make
backpatching those bug fixes easier seems worth the effort.  I just
don't know what "recent" should be defined as. I'd say if it's in a
version we've not released yet, that's probably recent. By the time .1
is out, there's less chance of bugs in new code. Anyway, I doubt hard
guidelines are warranted here, but maybe some hints about best
practices in https://wiki.postgresql.org/wiki/Committing_checklist ?

David





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 10:00                               ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-09-04 01:25                                 ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-04 08:23                                   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-09-04 15:34                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2024-09-05 00:03                                       ` Michael Paquier <michael@paquier.xyz>
  1 sibling, 0 replies; 55+ messages in thread

From: Michael Paquier @ 2024-09-05 00:03 UTC (permalink / raw)
  To: David Rowley <dgrowleyml@gmail.com>; +Cc: Daniel Gustafsson <daniel@yesql.se>; Alexander Lakhin <exclusion@gmail.com>; Tom Lane <tgl@sss.pgh.pa.us>; Robert Haas <robertmhaas@gmail.com>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On Thu, Sep 05, 2024 at 03:34:31AM +1200, David Rowley wrote:
> Anyway, I doubt hard
> guidelines are warranted here, but maybe some hints about best
> practices in https://wiki.postgresql.org/wiki/Committing_checklist ?

Yep, that may be useful.  I just tend to be cautious because it can be
very easy to mess up things depending on the code path you're
manipulating, speaking with some..  Experience on the matter.  And an
RC1 is kind of something to be cautious with.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 10:00                               ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-09-04 01:25                                 ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-04 08:23                                   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-09-04 15:34                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2024-09-06 09:42                                       ` Daniel Gustafsson <daniel@yesql.se>
  1 sibling, 0 replies; 55+ messages in thread

From: Daniel Gustafsson @ 2024-09-06 09:42 UTC (permalink / raw)
  To: David Rowley <dgrowleyml@gmail.com>; +Cc: Michael Paquier <michael@paquier.xyz>; Alexander Lakhin <exclusion@gmail.com>; Tom Lane <tgl@sss.pgh.pa.us>; Robert Haas <robertmhaas@gmail.com>; Nazir Bilal Yavuz <byavuz81@gmail.com>; Heikki Linnakangas <hlinnaka@iki.fi>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

> On 4 Sep 2024, at 17:34, David Rowley <dgrowleyml@gmail.com> wrote:
> 
> On Wed, 4 Sept 2024 at 20:24, Daniel Gustafsson <daniel@yesql.se> wrote:
>> Not mandatory at all, but since you were prepping a typo backpatch anyways I
>> figured these could join to put a small dent in reducing risks for future
>> backports.
> 
> I think this is pretty good logic.  I think fixing comment typos in
> ancient code and backpatching to all supported versions isn't good use
> of time, but fixing a typo in "recent" code and backpatching to where
> that code was added seems useful. Newer code is more likely to need
> bug fixes in the future, so going to a bit more effort to make
> backpatching those bug fixes easier seems worth the effort.

Absolutely agree.

> I just don't know what "recent" should be defined as. I'd say if it's in a
> version we've not released yet, that's probably recent. By the time .1
> is out, there's less chance of bugs in new code. Anyway, I doubt hard
> guidelines are warranted here, but maybe some hints about best
> practices in https://wiki.postgresql.org/wiki/Committing_checklist ?

That sounds like a good idea.  Off the cuff I would agree that unreleased
versions and .0 versions are strong candidates (but not mandatory) for trivial
backpatches like typos, beyond that the value is likely to be lower.

--
Daniel Gustafsson






^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
@ 2025-01-01 16:00                               ` Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-04-19 19:00                                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  1 sibling, 2 replies; 55+ messages in thread

From: Alexander Lakhin @ 2025-01-01 16:00 UTC (permalink / raw)
  To: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; +Cc: David Rowley <dgrowleyml@gmail.com>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>; Michael Paquier <michael@paquier.xyz>

Hello hackers,

03.09.2024 08:51, Michael Paquier wrote:
> And done that.

Please look at another collection of typos and inconsistencies introduced
during 2024:
behvior -> behavior

contraint -> constraint

curent -> current

disable_node -> disabled_nodes

disabled_node > disabled_nodes

disable_nodes -> disabled_nodes

FindFkPeriodOpers -> FindFKPeriodOpers

heap_inplace_update -> heap_inplace_update_and_unlock

InitLocks -> LockManagerShmemInit? (see fbce7dfc7)

isReadOnly -> IsReadOnly

negotations -> negotiations

notnull_inh -> notnull_islocal (coined by 14e87ffa5)

num_word -> just remove an old-fashioned comment? or change to
  append_num_word (see 5bf948d56)

objectAddress -> ObjectAddress

orderProc -> orderProcs

pg_visibilitymap.c -> visibilitymap.c

postitional_fcinfo -> positional_fcinfo

preserve_formatting -> preserve_comments (see 995e0fbc1)

procesess -> processes

trapper -> trapped

trasformed -> transformed

vac_update_datfrozenid -> vac_update_datfrozenxid

XLPH_HAS_* -> XLHP_HAS_*

XLogRecordInsert -> XLogInsertRecord (coined by afd12774a)

Please find attached the corresponding patch for your convenience.

Best regards,
Alexander

Attachments:

fix-typos-inconsistencies-2024.patch (text/x-patch, 12.9K) download diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index 329e727f80..b2dd146677 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -6387,7 +6387,7 @@ heap_inplace_update_and_unlock(Relation relation, * * ["D" is a VACUUM (ONLY_DATABASE_STATS)] * ["R" is a VACUUM tbl] - * D: vac_update_datfrozenid() -> systable_beginscan(pg_class) + * D: vac_update_datfrozenxid() -> systable_beginscan(pg_class) * D: systable_getnext() returns pg_class tuple of tbl * R: memcpy() into pg_class tuple of tbl * D: raise pg_database.datfrozenxid, XLogInsert(), finish diff --git a/src/backend/access/heap/pruneheap.c b/src/backend/access/heap/pruneheap.c index 11c9532719..a87145aeeb 100644 --- a/src/backend/access/heap/pruneheap.c +++ b/src/backend/access/heap/pruneheap.c @@ -2133,7 +2133,7 @@ log_heap_prune_and_freeze(Relation relation, Buffer buffer, sizeof(OffsetNumber) * nfrozen); /* - * Prepare the main xl_heap_prune record. We already set the XLPH_HAS_* + * Prepare the main xl_heap_prune record. We already set the XLHP_HAS_* * flag above. */ if (RelationIsAccessibleInLogicalDecoding(relation)) diff --git a/src/backend/access/nbtree/nbtutils.c b/src/backend/access/nbtree/nbtutils.c index a531d37908..593cd98d70 100644 --- a/src/backend/access/nbtree/nbtutils.c +++ b/src/backend/access/nbtree/nbtutils.c @@ -2584,7 +2584,7 @@ _bt_preprocess_keys(IndexScanDesc scan) { inkeys = arrayKeyData; - /* Also maintain keyDataMap for remapping so->orderProc[] later */ + /* Also maintain keyDataMap for remapping so->orderProcs[] later */ keyDataMap = MemoryContextAlloc(so->arrayContext, numberOfKeys * sizeof(int)); } diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 6f58412bca..b5ff45602a 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -554,7 +554,7 @@ typedef struct XLogCtlData } XLogCtlData; /* - * Classification of XLogRecordInsert operations. + * Classification of XLogInsertRecord operations. */ typedef enum { diff --git a/src/backend/catalog/pg_constraint.c b/src/backend/catalog/pg_constraint.c index 9c05a98d28..e210886e17 100644 --- a/src/backend/catalog/pg_constraint.c +++ b/src/backend/catalog/pg_constraint.c @@ -1600,7 +1600,7 @@ DeconstructFkConstraintRow(HeapTuple tuple, int *numfks, } /* - * FindFkPeriodOpers - + * FindFKPeriodOpers - * * Looks up the operator oids used for the PERIOD part of a temporal foreign key. * The opclass should be the opclass of that PERIOD element. diff --git a/src/backend/catalog/pg_depend.c b/src/backend/catalog/pg_depend.c index 2b4514e8a3..3ed45f3cfc 100644 --- a/src/backend/catalog/pg_depend.c +++ b/src/backend/catalog/pg_depend.c @@ -35,7 +35,7 @@ static bool isObjectPinned(const ObjectAddress *object); /* - * Record a dependency between 2 objects via their respective objectAddress. + * Record a dependency between 2 objects via their respective ObjectAddress. * The first argument is the dependent object, the second the one it * references. * diff --git a/src/backend/catalog/storage.c b/src/backend/catalog/storage.c index 5b22cf1099..20d9a21abc 100644 --- a/src/backend/catalog/storage.c +++ b/src/backend/catalog/storage.c @@ -380,7 +380,7 @@ RelationTruncate(Relation rel, BlockNumber nblocks) * replay or visibility invariants downstream. The critical section also * suppresses interrupts. * - * (See also pg_visibilitymap.c if changing this code.) + * (See also visibilitymap.c if changing this code.) */ START_CRIT_SECTION(); diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index a201ed3082..c1e1e9804d 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -1384,8 +1384,8 @@ ExplainPreScanNode(PlanState *planstate, Bitmapset **rels_used) /* * plan_is_disabled * Checks if the given plan node type was disabled during query planning. - * This is evident by the disable_node field being higher than the sum of - * the disabled_node field from the plan's children. + * This is evident by the disabled_nodes field being higher than the sum of + * the disabled_nodes field from the plan's children. */ static bool plan_is_disabled(Plan *plan) @@ -1462,7 +1462,7 @@ plan_is_disabled(Plan *plan) } /* - * It's disabled if the plan's disable_nodes is higher than the sum of its + * It's disabled if the plan's disabled_nodes is higher than the sum of its * child's plan disabled_nodes. */ if (plan->disabled_nodes > child_disabled_nodes) diff --git a/src/backend/optimizer/path/indxpath.c b/src/backend/optimizer/path/indxpath.c index 5d102a0d37..87ce46d3b4 100644 --- a/src/backend/optimizer/path/indxpath.c +++ b/src/backend/optimizer/path/indxpath.c @@ -2620,7 +2620,7 @@ match_clause_to_index(PlannerInfo *root, * * It is also possible to match a list of OR clauses if it might be * transformed into a single ScalarArrayOpExpr clause. On success, - * the returning index clause will contain a trasformed clause. + * the returning index clause will contain a transformed clause. * * For boolean indexes, it is also possible to match the clause directly * to the indexkey; or perhaps the clause is (NOT indexkey). diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 6f849ffbcb..161020f289 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -2827,7 +2827,7 @@ PostmasterStateMachine(void) /* * In the PM_WAIT_BACKENDS state, wait for all the regular backends and - * procesess like autovacuum and background workers that are comparable to + * processes like autovacuum and background workers that are comparable to * backends to exit. * * PM_STOP_BACKENDS is a transient state that means the same as diff --git a/src/backend/replication/logical/decode.c b/src/backend/replication/logical/decode.c index e73576ad12..21828ac6cf 100644 --- a/src/backend/replication/logical/decode.c +++ b/src/backend/replication/logical/decode.c @@ -519,8 +519,8 @@ heap_decode(LogicalDecodingContext *ctx, XLogRecordBuffer *buf) * tuples, we're not interested in the record's contents. * * WAL contains likely-unnecessary commit-time invals from the - * CacheInvalidateHeapTuple() call in heap_inplace_update(). - * Excess invalidation is safe. + * CacheInvalidateHeapTuple() call in + * heap_inplace_update_and_unlock(). Excess invalidation is safe. */ break; diff --git a/src/backend/statistics/attribute_stats.c b/src/backend/statistics/attribute_stats.c index b97ba7b0c0..21d6293a23 100644 --- a/src/backend/statistics/attribute_stats.c +++ b/src/backend/statistics/attribute_stats.c @@ -538,7 +538,7 @@ get_attr_stat_type(Oid reloid, AttrNumber attnum, int elevel, * When analyzing an expression index, believe the expression tree's type * not the column datatype --- the latter might be the opckeytype storage * type of the opclass, which is not interesting for our purposes. This - * mimics the behvior of examine_attribute(). + * mimics the behavior of examine_attribute(). */ if (expr == NULL) { diff --git a/src/backend/statistics/stat_utils.c b/src/backend/statistics/stat_utils.c index 728e30e780..e874497df6 100644 --- a/src/backend/statistics/stat_utils.c +++ b/src/backend/statistics/stat_utils.c @@ -243,7 +243,7 @@ stats_fill_fcinfo_from_arg_pairs(FunctionCallInfo pairs_fcinfo, /* * For each argument name/value pair, find corresponding positional * argument for the argument name, and assign the argument value to - * postitional_fcinfo. + * positional_fcinfo. */ for (int i = 0; i < nargs; i += 2) { diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 0576bb75b2..f549ba5be1 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -21,7 +21,7 @@ * * Interface: * - * InitLocks(), GetLocksMethodTable(), GetLockTagsMethodTable(), + * LockManagerShmemInit(), GetLocksMethodTable(), GetLockTagsMethodTable(), * LockAcquire(), LockRelease(), LockReleaseAll(), * LockCheckConflicts(), GrantLock() * diff --git a/src/backend/utils/adt/cash.c b/src/backend/utils/adt/cash.c index c1a743b2a6..611d23f3cb 100644 --- a/src/backend/utils/adt/cash.c +++ b/src/backend/utils/adt/cash.c @@ -85,7 +85,7 @@ append_num_word(StringInfo buf, Cash value) else appendStringInfo(buf, "%s %s", big[tu / 10], small[tu % 10]); } -} /* num_word() */ +} static inline Cash cash_pl_cash(Cash c1, Cash c2) diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 19969e400f..167b2bd33e 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -9347,8 +9347,8 @@ getTableAttrs(Archive *fout, TableInfo *tblinfo, int numTables) * constraints and the columns in the child don't have their own NOT NULL * declarations, we suppress printing constraints in the child: the * constraints are acquired at the point where the child is attached to the - * parent. This is tracked in ->notnull_inh (which is set in flagInhAttrs for - * servers pre-18). + * parent. This is tracked in ->notnull_islocal (which is set in flagInhAttrs + * for servers pre-18). * * Any of these constraints might have the NO INHERIT bit. If so we set * ->notnull_noinh and NO INHERIT will be printed by dumpTableSchema. @@ -16513,7 +16513,7 @@ dumpTableSchema(Archive *fout, const TableInfo *tbinfo) * conislocal. The inhcount is fixed by ALTER TABLE INHERIT, * below. Special hack: in versions < 18, columns with no * local definition need their constraint to be matched by - * column number in conkeys instead of by contraint name, + * column number in conkeys instead of by constraint name, * because the latter is not available. (We distinguish the * case because the constraint name is the empty string.) */ diff --git a/src/bin/pg_rewind/parsexlog.c b/src/bin/pg_rewind/parsexlog.c index 242326c97a..5cc1ecb6f1 100644 --- a/src/bin/pg_rewind/parsexlog.c +++ b/src/bin/pg_rewind/parsexlog.c @@ -227,7 +227,7 @@ findLastCheckpoint(const char *datadir, XLogRecPtr forkptr, int tliIndex, snprintf(xlogfname, MAXFNAMELEN, XLOGDIR "/"); - /* update curent values */ + /* update current values */ current_tli = xlogreader->seg.ws_tli; current_segno = xlogreader->seg.ws_segno; diff --git a/src/include/catalog/reformat_dat_file.pl b/src/include/catalog/reformat_dat_file.pl index 838cd0af73..1cd0464229 100755 --- a/src/include/catalog/reformat_dat_file.pl +++ b/src/include/catalog/reformat_dat_file.pl @@ -84,7 +84,7 @@ foreach my $datfile (@ARGV) # if you need to. In the following example, the "next if !ref $row" # check below is a hack to filter out non-hash objects. This is because # we build the lookup tables from data that we read using the -# "preserve_formatting" parameter. +# "preserve_comments" parameter. # ##Index access method lookup. #my %amnames; diff --git a/src/include/commands/copyfrom_internal.h b/src/include/commands/copyfrom_internal.h index cad52fcc78..1de843ca8e 100644 --- a/src/include/commands/copyfrom_internal.h +++ b/src/include/commands/copyfrom_internal.h @@ -95,7 +95,7 @@ typedef struct CopyFromStateData * default value */ FmgrInfo *in_functions; /* array of input functions for each attrs */ Oid *typioparams; /* array of element types for in_functions */ - ErrorSaveContext *escontext; /* soft error trapper during in_functions + ErrorSaveContext *escontext; /* soft error trapped during in_functions * execution */ uint64 num_errors; /* total number of rows which contained soft * errors */ diff --git a/src/include/jit/SectionMemoryManager.h b/src/include/jit/SectionMemoryManager.h index 93cf977157..69e4d66e5e 100644 --- a/src/include/jit/SectionMemoryManager.h +++ b/src/include/jit/SectionMemoryManager.h @@ -153,7 +153,7 @@ public: /// a default alignment of 16 will be used. uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, StringRef SectionName, - bool isReadOnly) override; + bool IsReadOnly) override; /// Update section-specific memory permissions and other attributes. /// diff --git a/src/test/postmaster/t/002_start_stop.pl b/src/test/postmaster/t/002_start_stop.pl index 993d855ece..ad11db159e 100644 --- a/src/test/postmaster/t/002_start_stop.pl +++ b/src/test/postmaster/t/002_start_stop.pl @@ -54,7 +54,7 @@ for (my $i = 0; $i <= 20; $i++) # postmaster cannot accept() them fast enough. The exact limit # and behavior depends on the platform. To make this reliable, # we attempt SSL negotiation on each connection before opening - # next one. The server will reject the SSL negotations, but + # next one. The server will reject the SSL negotiations, but # when it does so, we know that the backend has been launched # and we should be able to open another connection.
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2025-01-01 23:22                                 ` David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  1 sibling, 1 reply; 55+ messages in thread

From: David Rowley @ 2025-01-01 23:22 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>; Michael Paquier <michael@paquier.xyz>

On Thu, 2 Jan 2025 at 05:00, Alexander Lakhin <exclusion@gmail.com> wrote:
> Please look at another collection of typos and inconsistencies introduced
> during 2024:

The fixes all look good to me. I see some are mine, so I will take
care of pushing.

Thanks for the patch.

David





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2025-04-19 08:00                                   ` Alexander Lakhin <exclusion@gmail.com>
  2025-04-19 10:04                                     ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  0 siblings, 2 replies; 55+ messages in thread

From: Alexander Lakhin @ 2025-04-19 08:00 UTC (permalink / raw)
  To: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; +Cc: Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>; Michael Paquier <michael@paquier.xyz>; David Rowley <dgrowleyml@gmail.com>

Hello hackers,

I've gathered the following collection of typos and inconsistencies
appeared since 2025-01-01:
aio_worker.c -> method_worker.c

amcheck_lock_relation -> amcheck_lock_relation_and_check

be_key -> be_cancel_key

belonds -> belongs

cann -> can

CheckConstraintFetch -> CheckNNConstraintFetch
(renamed by a379061a2)

COLLID -> COLLOID

coltypemods -> coltypmods

columsn -> column

combinig -> combining

containting -> containing

non-exist datbase -> non-existent database

dead_end -> dead-end
(see a78af0427)

derefefence -> dereference

displyed -> displayed

droping -> dropping

es_eqp_active -> es_epq_active

es_part_prune_result -> es_part_prune_results

ExceDelete -> ExecDelete

excludes-chema -> exclude-schema

it fhe -> if the

GIN_TUPLE_ -> GIN_TUPLE_H

HandleFatalErrors -> HandleFatalError

happend -> reached
(to preserve the line width)

happenning -> happening

HIKEY -> P_HIKEY

IGNORE_CHECKSUM_FAILURE -> PIV_IGNORE_CHECKSUM_FAILURE

InitExecPartitionPruneContext -> InitExecPartitionPruneContexts

inititalization -> initialization

Injection_point -> Injection point

iterm -> item

$log_end -> remove unused variable
(align with src/test/modules/oauth_validator/t/001_server.pl)

looplback -> loopback

mappping -> mapping

MyWorkerId -> MyIoWorkerId

negotation -> negotiation

network-byte-order -> network byte order

parititioned* -> partitioned*

pending_null -> pending_nulls

permanentaly -> permanently

pg_localeconf_free -> pg_localeconv_free

PG_READ_ALL_STATS -> ROLE_PG_READ_ALL_STATS

pk_strategy -> pk_cmptype
(see 8123e91f5)

PM_WAIT_BACKEND -> PM_WAIT_BACKENDS

pollset -> poll set

predicable -> predictable

PRINT_STATS_STDERR -> PRINT_STATS_TO_STDERR

procced -> proceed

remining -> remaining

save_xmin -> saved_xmin

smgstartreadv -> smgrstartreadv

StartLocalBufer -> StartLocalBufferIO

statitistics -> statistics

swaping -> swapping

synq_queue_destroy -> sync_queue_destroy

thats -> that's

ther -> there

test-server -> test server

unfronzen -> unfrozen

upin -> unpin

Please find attached the complete patch for your convenience.

Best regards,
Alexander Lakhin
Neon (https://neon.tech)

Attachments:

fix-typos-inconsistencies-2025-01_04.patch (text/x-patch, 34.3K) download diff --git a/contrib/amcheck/verify_common.h b/contrib/amcheck/verify_common.h index b2565bfbbab..e78adb68808 100644 --- a/contrib/amcheck/verify_common.h +++ b/contrib/amcheck/verify_common.h @@ -16,7 +16,7 @@ #include "utils/relcache.h" #include "miscadmin.h" -/* Typedefs for callback functions for amcheck_lock_relation */ +/* Typedefs for callback functions for amcheck_lock_relation_and_check */ typedef void (*IndexCheckableCallback) (Relation index); typedef void (*IndexDoCheckCallback) (Relation rel, Relation heaprel, diff --git a/contrib/amcheck/verify_gin.c b/contrib/amcheck/verify_gin.c index 318fe330518..3629243ed01 100644 --- a/contrib/amcheck/verify_gin.c +++ b/contrib/amcheck/verify_gin.c @@ -359,7 +359,7 @@ gin_check_posting_tree_parent_keys_consistency(Relation rel, BlockNumber posting ptr->depth = stack->depth + 1; /* - * Set rightmost parent key to invalid iterm pointer. Its + * Set rightmost parent key to invalid item pointer. Its * value is 'Infinity' and not explicitly stored. */ if (rightlink == InvalidBlockNumber) @@ -587,7 +587,7 @@ gin_check_parent_keys_consistency(Relation rel, /* * Check if it is properly adjusted. If succeed, - * procced to the next key. + * proceed to the next key. */ if (ginCompareEntries(&state, attnum, current_key, current_key_category, parent_key, diff --git a/contrib/pg_buffercache/pg_buffercache_pages.c b/contrib/pg_buffercache/pg_buffercache_pages.c index e1701bd56ef..6bfb9fb669e 100644 --- a/contrib/pg_buffercache/pg_buffercache_pages.c +++ b/contrib/pg_buffercache/pg_buffercache_pages.c @@ -289,7 +289,7 @@ pg_buffercache_pages(PG_FUNCTION_ARGS) * * Returns NUMA node ID for each memory page used by the buffer. Buffers may * be smaller or larger than OS memory pages. For each buffer we return one - * entry for each memory page used by the buffer (it fhe buffer is smaller, + * entry for each memory page used by the buffer (if the buffer is smaller, * it only uses a part of one memory page). * * We expect both sizes (for buffers and memory pages) to be a power-of-2, so @@ -335,7 +335,7 @@ pg_buffercache_numa_pages(PG_FUNCTION_ARGS) * how the pages and buffers "align" in memory - the buffers may be * shifted in some way, using more memory pages than necessary. * - * So we need to be careful about mappping buffers to memory pages. We + * So we need to be careful about mapping buffers to memory pages. We * calculate the maximum number of pages a buffer might use, so that * we allocate enough space for the entries. And then we count the * actual number of entries as we scan the buffers. diff --git a/contrib/pg_overexplain/expected/pg_overexplain.out b/contrib/pg_overexplain/expected/pg_overexplain.out index 28252dbff6c..44120c388af 100644 --- a/contrib/pg_overexplain/expected/pg_overexplain.out +++ b/contrib/pg_overexplain/expected/pg_overexplain.out @@ -123,7 +123,7 @@ $$); RTI 1 (relation, inherited, in-from-clause): Eref: vegetables (id, name, genus) Relation: vegetables - Relation Kind: parititioned_table + Relation Kind: partitioned_table Relation Lock Mode: AccessShareLock Permission Info Index: 1 RTI 2 (group): @@ -250,7 +250,7 @@ $$); <In-From-Clause>true</In-From-Clause> + <Eref>vegetables (id, name, genus)</Eref> + <Relation>vegetables</Relation> + - <Relation-Kind>parititioned_table</Relation-Kind> + + <Relation-Kind>partitioned_table</Relation-Kind> + <Relation-Lock-Mode>AccessShareLock</Relation-Lock-Mode> + <Permission-Info-Index>1</Permission-Info-Index> + <Security-Barrier>false</Security-Barrier> + @@ -454,7 +454,7 @@ SELECT * FROM vegetables WHERE genus = 'daucus'; RTI 1 (relation, inherited, in-from-clause): Eref: vegetables (id, name, genus) Relation: vegetables - Relation Kind: parititioned_table + Relation Kind: partitioned_table Relation Lock Mode: AccessShareLock Permission Info Index: 1 RTI 2 (relation, in-from-clause): @@ -478,7 +478,7 @@ INSERT INTO vegetables (name, genus) VALUES ('broccoflower', 'brassica'); RTI 1 (relation): Eref: vegetables (id, name, genus) Relation: vegetables - Relation Kind: parititioned_table + Relation Kind: partitioned_table Relation Lock Mode: RowExclusiveLock Permission Info Index: 1 RTI 2 (result): diff --git a/contrib/pg_overexplain/pg_overexplain.c b/contrib/pg_overexplain/pg_overexplain.c index f60049f4ba6..de824566f8c 100644 --- a/contrib/pg_overexplain/pg_overexplain.c +++ b/contrib/pg_overexplain/pg_overexplain.c @@ -277,7 +277,7 @@ overexplain_per_plan_hook(PlannedStmt *plannedstmt, * Print out various details from the PlannedStmt that wouldn't otherwise * be displayed. * - * We don't try to print everything here. Information that would be displyed + * We don't try to print everything here. Information that would be displayed * anyway doesn't need to be printed again here, and things with lots of * substructure probably should be printed via separate options, or not at all. */ @@ -517,10 +517,10 @@ overexplain_range_table(PlannedStmt *plannedstmt, ExplainState *es) relkind = "foreign_table"; break; case RELKIND_PARTITIONED_TABLE: - relkind = "parititioned_table"; + relkind = "partitioned_table"; break; case RELKIND_PARTITIONED_INDEX: - relkind = "parititioned_index"; + relkind = "partitioned_index"; break; case '\0': relkind = NULL; @@ -632,7 +632,7 @@ overexplain_range_table(PlannedStmt *plannedstmt, ExplainState *es) } /* - * add_rte_to_flat_rtable will clear coltypes, coltypemods, and + * add_rte_to_flat_rtable will clear coltypes, coltypmods, and * colcollations, so skip those fields. * * If this is an ephemeral named relation, print out ENR-related @@ -675,7 +675,7 @@ overexplain_range_table(PlannedStmt *plannedstmt, ExplainState *es) * Emit a text property describing the contents of an Alias. * * Column lists can be quite long here, so perhaps we should have an option - * to limit the display length by # of columsn or # of characters, but for + * to limit the display length by # of column or # of characters, but for * now, just display everything. */ static void diff --git a/contrib/postgres_fdw/t/001_auth_scram.pl b/contrib/postgres_fdw/t/001_auth_scram.pl index ba178246eb7..b94a6a6293b 100644 --- a/contrib/postgres_fdw/t/001_auth_scram.pl +++ b/contrib/postgres_fdw/t/001_auth_scram.pl @@ -3,7 +3,7 @@ # Test SCRAM authentication when opening a new connection with a foreign # server. # -# The test is executed by testing the SCRAM authentifcation on a looplback +# The test is executed by testing the SCRAM authentifcation on a loopback # connection on the same server and with different servers. use strict; diff --git a/doc/src/sgml/ref/pg_dump.sgml b/doc/src/sgml/ref/pg_dump.sgml index bfc1e7b3524..b757d27ebd0 100644 --- a/doc/src/sgml/ref/pg_dump.sgml +++ b/doc/src/sgml/ref/pg_dump.sgml @@ -1315,7 +1315,7 @@ PostgreSQL documentation </para> <para> The data section contains actual table data, large-object - contents, statitistics for tables and materialized views and + contents, statistics for tables and materialized views and sequence values. Post-data items include definitions of indexes, triggers, rules, statistics for indexes, and constraints other than validated check diff --git a/doc/src/sgml/regress.sgml b/doc/src/sgml/regress.sgml index 0e5e8e8f309..bf4ffb30576 100644 --- a/doc/src/sgml/regress.sgml +++ b/doc/src/sgml/regress.sgml @@ -353,7 +353,7 @@ make check-world PG_TEST_EXTRA='kerberos ldap ssl load_balance libpq_encryption' <listitem> <para> Runs the test suite under <filename>src/test/modules/oauth_validator</filename>. - This opens TCP/IP listen sockets for a test-server running HTTPS. + This opens TCP/IP listen sockets for a test server running HTTPS. </para> </listitem> </varlistentry> diff --git a/src/backend/access/gin/gininsert.c b/src/backend/access/gin/gininsert.c index cfab93ec30c..a7b7b5996e3 100644 --- a/src/backend/access/gin/gininsert.c +++ b/src/backend/access/gin/gininsert.c @@ -167,7 +167,7 @@ typedef struct /* * The sortstate used only within a single worker for the first merge pass - * happenning there. In principle it doesn't need to be part of the build + * happening there. In principle it doesn't need to be part of the build * state and we could pass it around directly, but it's more convenient * this way. And it's part of the build state, after all. */ @@ -1306,7 +1306,7 @@ GinBufferIsEmpty(GinBuffer *buffer) * Compare if the tuple matches the already accumulated data in the GIN * buffer. Compare scalar fields first, before the actual key. * - * Returns true if the key matches, and the TID belonds to the buffer, or + * Returns true if the key matches, and the TID belongs to the buffer, or * false if the key does not match. */ static bool @@ -1497,7 +1497,7 @@ GinBufferStoreTuple(GinBuffer *buffer, GinTuple *tup) buffer->items = repalloc(buffer->items, (buffer->nitems + tup->nitems) * sizeof(ItemPointerData)); - new = ginMergeItemPointers(&buffer->items[buffer->nfrozen], /* first unfronzen */ + new = ginMergeItemPointers(&buffer->items[buffer->nfrozen], /* first unfrozen */ (buffer->nitems - buffer->nfrozen), /* num of unfrozen */ items, tup->nitems, &nnew); @@ -1531,7 +1531,7 @@ GinBufferReset(GinBuffer *buffer) pfree(DatumGetPointer(buffer->key)); /* - * Not required, but makes it more likely to trigger NULL derefefence if + * Not required, but makes it more likely to trigger NULL dereference if * using the value incorrectly, etc. */ buffer->key = (Datum) 0; @@ -1603,7 +1603,7 @@ GinBufferCanAddKey(GinBuffer *buffer, GinTuple *tup) * * 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. * diff --git a/src/backend/access/nbtree/nbtsearch.c b/src/backend/access/nbtree/nbtsearch.c index f69397623df..77264ddeecb 100644 --- a/src/backend/access/nbtree/nbtsearch.c +++ b/src/backend/access/nbtree/nbtsearch.c @@ -1792,7 +1792,7 @@ _bt_readpage(IndexScanDesc scan, ScanDirection dir, OffsetNumber offnum, truncatt = BTreeTupleGetNAtts(itup, rel); pstate.forcenonrequired = false; - pstate.startikey = 0; /* _bt_set_startikey ignores HIKEY */ + pstate.startikey = 0; /* _bt_set_startikey ignores P_HIKEY */ _bt_checkkeys(scan, &pstate, arrayKeys, itup, truncatt); } diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index ec40c0b7c42..2d4c346473b 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -473,7 +473,7 @@ typedef struct XLogCtlData XLogRecPtr InitializedFrom; /* - * Latest reserved for inititalization page in the cache (last byte + * Latest reserved for initialization page in the cache (last byte * position + 1). * * To change the identity of a buffer, you need to advance @@ -2221,7 +2221,7 @@ AdvanceXLInsertBuffer(XLogRecPtr upto, TimeLineID tli, bool opportunistic) * m must observe f[k] == false. Otherwise, it will later attempt * CAS(v, k, k + 1) with success. * 4. Therefore, corresponding read_barrier() (while j == k) on - * process m happend before write_barrier() of process k. But then + * process m reached before write_barrier() of process k. But then * process k attempts CAS(v, k, k + 1) after process m successfully * incremented v to k, and that CAS operation must succeed. * That leads to a contradiction. So, there is no such k (k < n) @@ -2253,7 +2253,7 @@ AdvanceXLInsertBuffer(XLogRecPtr upto, TimeLineID tli, bool opportunistic) if (pg_atomic_read_u64(&XLogCtl->xlblocks[nextidx]) != NewPageEndPtr) { /* - * Page at nextidx wasn't initialized yet, so we cann't move + * Page at nextidx wasn't initialized yet, so we can't move * InitializedUpto further. It will be moved by backend which * will initialize nextidx. */ diff --git a/src/backend/catalog/catalog.c b/src/backend/catalog/catalog.c index 35ebb0ccda4..60000bd0bc7 100644 --- a/src/backend/catalog/catalog.c +++ b/src/backend/catalog/catalog.c @@ -143,7 +143,7 @@ IsCatalogRelationOid(Oid relid) * * The relcache must not use these indexes. Inserting into any UNIQUE * index compares index keys while holding BUFFER_LOCK_EXCLUSIVE. - * bttextcmp() can search the COLLID catcache. Depending on concurrent + * bttextcmp() can search the COLLOID catcache. Depending on concurrent * invalidation traffic, catcache can reach relcache builds. A backend * would self-deadlock on LWLocks if the relcache build read the * exclusive-locked buffer. diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 80f689bbbc5..265b1c397fb 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -11999,7 +11999,7 @@ DropForeignKeyConstraintTriggers(Relation trigrel, Oid conoid, Oid confrelid, if (OidIsValid(confrelid) && trgform->tgrelid != confrelid) continue; - /* We should be droping trigger related to foreign key constraint */ + /* We should be dropping trigger related to foreign key constraint */ Assert(trgform->tgfoid == F_RI_FKEY_CHECK_INS || trgform->tgfoid == F_RI_FKEY_CHECK_UPD || trgform->tgfoid == F_RI_FKEY_CASCADE_DEL || diff --git a/src/backend/executor/execMain.c b/src/backend/executor/execMain.c index 2da848970be..7230f968101 100644 --- a/src/backend/executor/execMain.c +++ b/src/backend/executor/execMain.c @@ -1861,7 +1861,7 @@ ExecRelCheck(ResultRelInfo *resultRelInfo, MemoryContext oldContext; /* - * CheckConstraintFetch let this pass with only a warning, but now we + * CheckNNConstraintFetch let this pass with only a warning, but now we * should fail rather than possibly failing to enforce an important * constraint. */ diff --git a/src/backend/executor/execPartition.c b/src/backend/executor/execPartition.c index 5a77c253826..9435cc21fe7 100644 --- a/src/backend/executor/execPartition.c +++ b/src/backend/executor/execPartition.c @@ -1778,7 +1778,7 @@ adjust_partition_colnos_using_map(List *colnos, AttrMap *attrMap) * Updates the PartitionPruneState found at given part_prune_index in * EState.es_part_prune_states for use during "exec" pruning if required. * Also returns the set of subplans to initialize that would be stored at - * part_prune_index in EState.es_part_prune_result by + * part_prune_index in EState.es_part_prune_results by * ExecDoInitialPruning(). Maps in PartitionPruneState are updated to * account for initial pruning possibly having eliminated some of the * subplans. @@ -2109,7 +2109,7 @@ CreatePartitionPruneState(EState *estate, PartitionPruneInfo *pruneinfo, */ partrel = ExecGetRangeTableRelation(estate, pinfo->rtindex, false); - /* Remember for InitExecPartitionPruneContext(). */ + /* Remember for InitExecPartitionPruneContexts(). */ pprune->partrel = partrel; partkey = RelationGetPartitionKey(partrel); diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c index 333cbf78343..46d533b7288 100644 --- a/src/backend/executor/nodeModifyTable.c +++ b/src/backend/executor/nodeModifyTable.c @@ -1311,7 +1311,7 @@ ExecInsert(ModifyTableContext *context, /* * Convert the OLD tuple to the new partition's format/slot, if - * needed. Note that ExceDelete() already converted it to the + * needed. Note that ExecDelete() already converted it to the * root's partition's format/slot. */ oldSlot = context->cpDeletedSlot; diff --git a/src/backend/executor/nodeSeqscan.c b/src/backend/executor/nodeSeqscan.c index 6f9e991eeae..ed35c58c2c3 100644 --- a/src/backend/executor/nodeSeqscan.c +++ b/src/backend/executor/nodeSeqscan.c @@ -100,7 +100,7 @@ SeqRecheck(SeqScanState *node, TupleTableSlot *slot) * ExecSeqScan(node) * * Scans the relation sequentially and returns the next qualifying - * tuple. This variant is used when there is no es_eqp_active, no qual + * tuple. This variant is used when there is no es_epq_active, no qual * and no projection. Passing const-NULLs for these to ExecScanExtended * allows the compiler to eliminate the additional code that would * ordinarily be required for the evaluation of these. diff --git a/src/backend/nodes/queryjumblefuncs.c b/src/backend/nodes/queryjumblefuncs.c index 27fb87d3aaa..d1e82a63f09 100644 --- a/src/backend/nodes/queryjumblefuncs.c +++ b/src/backend/nodes/queryjumblefuncs.c @@ -357,7 +357,7 @@ AppendJumble64(JumbleState *jstate, const unsigned char *value) /* * FlushPendingNulls - * Incorporate the pending_null value into the jumble buffer. + * Incorporate the pending_nulls value into the jumble buffer. * * Note: Callers must ensure that there's at least 1 pending NULL. */ diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 17fed96fe20..490f7ce3664 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -2718,7 +2718,7 @@ HandleFatalError(QuitSignalReason reason, bool consider_sigabrt) /* * Choose the appropriate new state to react to the fatal error. Unless we * were already in the process of shutting down, we go through - * PM_WAIT_BACKEND. For errors during the shutdown sequence, we directly + * PM_WAIT_BACKENDS. For errors during the shutdown sequence, we directly * switch to PM_WAIT_DEAD_END. */ switch (pmState) @@ -3001,7 +3001,7 @@ PostmasterStateMachine(void) /* * Stop any dead-end children and stop creating new ones. * - * NB: Similar code exists in HandleFatalErrors(), when the + * NB: Similar code exists in HandleFatalError(), when the * error happens in pmState > PM_WAIT_BACKENDS. */ UpdatePMState(PM_WAIT_DEAD_END); @@ -3082,7 +3082,7 @@ PostmasterStateMachine(void) { /* * PM_WAIT_IO_WORKERS state ends when there's only checkpointer and - * dead_end children left. + * dead-end children left. */ if (io_worker_count == 0) { diff --git a/src/backend/storage/aio/README.md b/src/backend/storage/aio/README.md index b00de269ad9..f10b5c7e31e 100644 --- a/src/backend/storage/aio/README.md +++ b/src/backend/storage/aio/README.md @@ -103,7 +103,7 @@ pgaio_io_set_handle_data_32(ioh, (uint32 *) buffer, 1); * * E.g. md.c needs to translate block numbers into offsets in segments. * - * Once the IO handle has been handed off to smgstartreadv(), it may not + * Once the IO handle has been handed off to smgrstartreadv(), it may not * further be used, as the IO may immediately get executed below * smgrstartreadv() and the handle reused for another IO. * diff --git a/src/backend/storage/aio/method_worker.c b/src/backend/storage/aio/method_worker.c index 8ad17ec1ef7..5ff54f5c82c 100644 --- a/src/backend/storage/aio/method_worker.c +++ b/src/backend/storage/aio/method_worker.c @@ -321,7 +321,7 @@ pgaio_worker_die(int code, Datum arg) } /* - * Register the worker in shared memory, assign MyWorkerId and register a + * Register the worker in shared memory, assign MyIoWorkerId and register a * shutdown callback to release registration. */ static void diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index 1f2a9fe9976..fe0ceeadc13 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -4970,7 +4970,7 @@ FlushRelationBuffers(Relation rel) ResourceOwnerEnlarge(CurrentResourceOwner); /* - * Pin/upin mostly to make valgrind work, but it also seems + * Pin/unpin mostly to make valgrind work, but it also seems * like the right thing to do. */ PinLocalBuffer(bufHdr, false); diff --git a/src/backend/storage/page/bufpage.c b/src/backend/storage/page/bufpage.c index 82457bacc62..dbb49ed9197 100644 --- a/src/backend/storage/page/bufpage.c +++ b/src/backend/storage/page/bufpage.c @@ -88,7 +88,7 @@ PageInit(Page page, Size pageSize, Size specialSize) * To allow the caller to report statistics about checksum failures, * *checksum_failure_p can be passed in. Note that there may be checksum * failures even if this function returns true, due to - * IGNORE_CHECKSUM_FAILURE. + * PIV_IGNORE_CHECKSUM_FAILURE. */ bool PageIsVerified(PageData *page, BlockNumber blkno, int flags, bool *checksum_failure_p) diff --git a/src/backend/utils/adt/mcxtfuncs.c b/src/backend/utils/adt/mcxtfuncs.c index 254cdd34fba..206b601a52b 100644 --- a/src/backend/utils/adt/mcxtfuncs.c +++ b/src/backend/utils/adt/mcxtfuncs.c @@ -323,8 +323,8 @@ pg_log_backend_memory_contexts(PG_FUNCTION_ARGS) * Signal a backend or an auxiliary process to send its memory contexts, * wait for the results and display them. * - * By default, only superusers or users with PG_READ_ALL_STATS are allowed to - * signal a process to return the memory contexts. This is because allowing + * By default, only superusers or users with ROLE_PG_READ_ALL_STATS are allowed + * to signal a process to return the memory contexts. This is because allowing * any users to issue this request at an unbounded rate would cause lots of * requests to be sent, which can lead to denial of service. Additional roles * can be permitted with GRANT. @@ -495,7 +495,7 @@ pg_get_process_memory_contexts(PG_FUNCTION_ARGS) * statistics are available within the allowed time then display * previously published statistics if there are any. If no * previous statistics are available then return NULL. The timer - * is defined in milliseconds since thats what the condition + * is defined in milliseconds since that's what the condition * variable sleep uses. */ if (ConditionVariableTimedSleep(&memCxtState[procNumber].memcxt_cv, diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index a73aac4f98c..ab6317de5ae 100644 --- a/src/backend/utils/adt/pg_locale.c +++ b/src/backend/utils/adt/pg_locale.c @@ -19,7 +19,7 @@ * immediately. * * The other categories, LC_MONETARY, LC_NUMERIC, and LC_TIME are - * permanentaly set to "C", and then we use temporary locale_t + * permanently set to "C", and then we use temporary locale_t * objects when we need to look up locale data based on the GUCs * of the same name. Information is cached when the GUCs change. * The cached information is only used by the formatting functions diff --git a/src/backend/utils/cache/plancache.c b/src/backend/utils/cache/plancache.c index 3b681647060..9bcbc4c3e97 100644 --- a/src/backend/utils/cache/plancache.c +++ b/src/backend/utils/cache/plancache.c @@ -1271,7 +1271,7 @@ UpdateCachedPlan(CachedPlanSource *plansource, int query_index, /* * XXX Should this also (re)set the properties of the CachedPlan that are * set in BuildCachedPlan() after creating the fresh plans such as - * planRoleId, dependsOnRole, and save_xmin? + * planRoleId, dependsOnRole, and saved_xmin? */ /* diff --git a/src/backend/utils/mmgr/mcxt.c b/src/backend/utils/mmgr/mcxt.c index e9aab36d110..468d0250b2e 100644 --- a/src/backend/utils/mmgr/mcxt.c +++ b/src/backend/utils/mmgr/mcxt.c @@ -910,7 +910,7 @@ MemoryContextStatsDetail(MemoryContext context, * * Print stats for this context if possible, but in any case accumulate counts * into *totals (if not NULL). The callers should make sure that print_location - * is set to PRINT_STATS_STDERR or PRINT_STATS_TO_LOGS or PRINT_STATS_NONE. + * is set to PRINT_STATS_TO_STDERR or PRINT_STATS_TO_LOGS or PRINT_STATS_NONE. */ static void MemoryContextStatsInternal(MemoryContext context, int level, diff --git a/src/bin/pg_dump/t/006_pg_dumpall.pl b/src/bin/pg_dump/t/006_pg_dumpall.pl index d6821c5615f..5acd49f1559 100644 --- a/src/bin/pg_dump/t/006_pg_dumpall.pl +++ b/src/bin/pg_dump/t/006_pg_dumpall.pl @@ -384,7 +384,7 @@ $node->command_fails_like( '--format' => 'custom', '-d' => 'dbpq', ], qr/\Qpg_restore: error: could not connect to database "dbpq"\E/, - 'When non-exist datbase is given with -d option in pg_restore with dump of pg_dumpall'); + 'When non-existent database is given with -d option in pg_restore with dump of pg_dumpall'); $node->stop('fast'); diff --git a/src/bin/pg_upgrade/relfilenumber.c b/src/bin/pg_upgrade/relfilenumber.c index aa205aec51d..79bc474a0bb 100644 --- a/src/bin/pg_upgrade/relfilenumber.c +++ b/src/bin/pg_upgrade/relfilenumber.c @@ -36,7 +36,7 @@ static void transfer_relfile(FileNameMap *map, const char *type_suffix, bool vm_ * * // be sure to sync any remaining files in the queue * sync_queue_sync_all(); - * synq_queue_destroy(); + * sync_queue_destroy(); */ #define SYNC_QUEUE_MAX_LEN (1024) diff --git a/src/bin/pg_upgrade/t/002_pg_upgrade.pl b/src/bin/pg_upgrade/t/002_pg_upgrade.pl index 78fab48349b..7d82593879d 100644 --- a/src/bin/pg_upgrade/t/002_pg_upgrade.pl +++ b/src/bin/pg_upgrade/t/002_pg_upgrade.pl @@ -72,7 +72,7 @@ sub filter_dump # adjust_child_columns is passed to adjust_regress_dumpfile() which actually # adjusts the dump output. # -# The name of the file containting adjusted dump is returned. +# The name of the file containing adjusted dump is returned. sub get_dump_for_comparison { my ($node, $db, $file_prefix, $adjust_child_columns) = @_; diff --git a/src/bin/psql/common.c b/src/bin/psql/common.c index 5382a07b74d..21d660a8961 100644 --- a/src/bin/psql/common.c +++ b/src/bin/psql/common.c @@ -1459,7 +1459,7 @@ DescribeQuery(const char *query, double *elapsed_msec) * * If a synchronisation point is found, we can stop discarding results as * the pipeline will switch back to a clean state. If no synchronisation - * point is available, we need to stop when ther are no more pending + * point is available, we need to stop when there are no more pending * results, otherwise, calling PQgetResult() would block. */ static PGresult * diff --git a/src/bin/scripts/t/100_vacuumdb.pl b/src/bin/scripts/t/100_vacuumdb.pl index bb56b353492..75ac24a7a55 100644 --- a/src/bin/scripts/t/100_vacuumdb.pl +++ b/src/bin/scripts/t/100_vacuumdb.pl @@ -197,7 +197,7 @@ $node->command_fails_like( 'postgres', ], qr/cannot vacuum specific table\(s\) and exclude schema\(s\) at the same time/, - 'cannot use options --excludes-chema and ---table at the same time'); + 'cannot use options --exclude-schema and ---table at the same time'); $node->command_fails_like( [ 'vacuumdb', diff --git a/src/include/access/gin_tuple.h b/src/include/access/gin_tuple.h index ce555031335..4a50565960f 100644 --- a/src/include/access/gin_tuple.h +++ b/src/include/access/gin_tuple.h @@ -7,8 +7,8 @@ * src/include/access/gin.h *-------------------------------------------------------------------------- */ -#ifndef GIN_TUPLE_ -#define GIN_TUPLE_ +#ifndef GIN_TUPLE_H +#define GIN_TUPLE_H #include "access/ginblock.h" #include "storage/itemptr.h" diff --git a/src/include/nodes/pathnodes.h b/src/include/nodes/pathnodes.h index bb678bdcdcd..011e5a811c3 100644 --- a/src/include/nodes/pathnodes.h +++ b/src/include/nodes/pathnodes.h @@ -1592,7 +1592,7 @@ typedef struct * equivalent and closely-related orderings. (See optimizer/README for more * information.) * - * Note: pk_strategy is either COMPARE_LT (for ASC) or COMPARE_GT (for DESC). + * Note: pk_cmptype is either COMPARE_LT (for ASC) or COMPARE_GT (for DESC). */ typedef struct PathKey { diff --git a/src/include/storage/aio_subsys.h b/src/include/storage/aio_subsys.h index 8a8ce87f62a..0cf36bb35da 100644 --- a/src/include/storage/aio_subsys.h +++ b/src/include/storage/aio_subsys.h @@ -31,7 +31,7 @@ extern void pgaio_error_cleanup(void); extern void AtEOXact_Aio(bool is_commit); -/* aio_worker.c */ +/* method_worker.c */ extern bool pgaio_workers_enabled(void); #endif /* AIO_SUBSYS_H */ diff --git a/src/interfaces/libpq/fe-auth-oauth-curl.c b/src/interfaces/libpq/fe-auth-oauth-curl.c index ddd87dcf02d..c195e00cd28 100644 --- a/src/interfaces/libpq/fe-auth-oauth-curl.c +++ b/src/interfaces/libpq/fe-auth-oauth-curl.c @@ -1205,7 +1205,7 @@ register_socket(CURL *curl, curl_socket_t socket, int what, void *ctx, res = epoll_ctl(actx->mux, op, socket, &ev); if (res < 0 && errno == EEXIST) { - /* We already had this socket in the pollset. */ + /* We already had this socket in the poll set. */ op = EPOLL_CTL_MOD; res = epoll_ctl(actx->mux, op, socket, &ev); } diff --git a/src/interfaces/libpq/fe-cancel.c b/src/interfaces/libpq/fe-cancel.c index e84e64bf2a7..25de2a337c9 100644 --- a/src/interfaces/libpq/fe-cancel.c +++ b/src/interfaces/libpq/fe-cancel.c @@ -50,7 +50,7 @@ struct pg_cancel * retransmits */ /* Pre-constructed cancel request packet starts here */ - int32 cancel_pkt_len; /* in network-byte-order */ + int32 cancel_pkt_len; /* in network byte order */ char cancel_req[FLEXIBLE_ARRAY_MEMBER]; /* CancelRequestPacket */ }; diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index bd86de53c67..e08b344276f 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -693,7 +693,7 @@ pqDropServerData(PGconn *conn) conn->oauth_want_retry = false; /* - * Cancel connections need to retain their be_pid and be_key across + * Cancel connections need to retain their be_pid and be_cancel_key across * PQcancelReset invocations, otherwise they would not have access to the * secret token of the connection they are supposed to cancel. */ diff --git a/src/interfaces/libpq/fe-protocol3.c b/src/interfaces/libpq/fe-protocol3.c index d85910f41fc..ca19e654a1c 100644 --- a/src/interfaces/libpq/fe-protocol3.c +++ b/src/interfaces/libpq/fe-protocol3.c @@ -1486,7 +1486,7 @@ pqGetNegotiateProtocolVersion3(PGconn *conn) return 0; eof: - libpq_append_conn_error(conn, "received invalid protocol negotation message: message too short"); + libpq_append_conn_error(conn, "received invalid protocol negotiation message: message too short"); failure: conn->asyncStatus = PGASYNC_READY; pqSaveErrorResult(conn); diff --git a/src/port/pg_localeconv_r.c b/src/port/pg_localeconv_r.c index 938b4f82e12..4554ab84e9b 100644 --- a/src/port/pg_localeconv_r.c +++ b/src/port/pg_localeconv_r.c @@ -216,7 +216,7 @@ pg_localeconv_copy_members(struct lconv *dst, * implied by the LC_MONETARY or LC_NUMERIC locale name. On Windows, LC_CTYPE * has to match to get sane results. * - * To get predicable results on all platforms, we'll call the underlying + * To get predictable results on all platforms, we'll call the underlying * routines with LC_ALL set to the appropriate locale for each set of members, * and merge the results. Three members of the resulting object are therefore * guaranteed to be encoded with LC_NUMERIC's codeset: "decimal_point", @@ -224,7 +224,7 @@ pg_localeconv_copy_members(struct lconv *dst, * LC_MONETARY's codeset. * * Returns 0 on success. Returns non-zero on failure, and sets errno. On - * success, the caller is responsible for calling pg_localeconf_free() on the + * success, the caller is responsible for calling pg_localeconv_free() on the * output struct to free the string members it contains. */ int diff --git a/src/port/pg_popcount_aarch64.c b/src/port/pg_popcount_aarch64.c index bed0f7ab242..e515e4d45b8 100644 --- a/src/port/pg_popcount_aarch64.c +++ b/src/port/pg_popcount_aarch64.c @@ -457,7 +457,7 @@ pg_popcount_masked_neon(const char *buf, int bytes, bits8 mask) popcnt += vaddvq_u64(vaddq_u64(accum3, accum4)); /* - * Process remining 8-byte blocks. + * Process remaining 8-byte blocks. */ for (; bytes >= sizeof(uint64); bytes -= sizeof(uint64)) { diff --git a/src/test/modules/oauth_validator/t/002_client.pl b/src/test/modules/oauth_validator/t/002_client.pl index 54769f12f57..8dd502f41e1 100644 --- a/src/test/modules/oauth_validator/t/002_client.pl +++ b/src/test/modules/oauth_validator/t/002_client.pl @@ -47,8 +47,7 @@ local all test oauth issuer="$issuer" scope="$scope" }); $node->reload; -my ($log_start, $log_end); -$log_start = $node->wait_for_log(qr/reloading configuration files/); +my $log_start = $node->wait_for_log(qr/reloading configuration files/); $ENV{PGOAUTHDEBUG} = "UNSAFE"; diff --git a/src/test/modules/test_aio/t/001_aio.pl b/src/test/modules/test_aio/t/001_aio.pl index ef4e5247e5b..4527c70785d 100644 --- a/src/test/modules/test_aio/t/001_aio.pl +++ b/src/test/modules/test_aio/t/001_aio.pl @@ -560,7 +560,7 @@ INSERT INTO tmp_ok SELECT generate_series(1, 10000); qr/^t$/, qr/^$/); - # Because local buffers don't use IO_IN_PROGRESS, a second StartLocalBufer + # Because local buffers don't use IO_IN_PROGRESS, a second StartLocalBufferIO # succeeds as well. This test mostly serves as a documentation of that # fact. If we had actually started IO, it'd be different. psql_like( diff --git a/src/test/recovery/t/035_standby_logical_decoding.pl b/src/test/recovery/t/035_standby_logical_decoding.pl index b85a4a4eda6..921813483e3 100644 --- a/src/test/recovery/t/035_standby_logical_decoding.pl +++ b/src/test/recovery/t/035_standby_logical_decoding.pl @@ -799,7 +799,7 @@ $logstart = -s $node_standby->logfile; reactive_slots_change_hfs_and_wait_for_xmins('no_conflict_', 'pruning_', 0, 0); -# Injection_point avoids seeing a xl_running_xacts. This is required because if +# Injection point avoids seeing a xl_running_xacts. This is required because if # it is generated between the last two updates, then the catalog_xmin of the # active slot could be updated, and hence, the conflict won't occur. See # comments atop wait_until_vacuum_can_remove. diff --git a/src/test/subscription/t/007_ddl.pl b/src/test/subscription/t/007_ddl.pl index de846193bb5..7d12bcbddb6 100644 --- a/src/test/subscription/t/007_ddl.pl +++ b/src/test/subscription/t/007_ddl.pl @@ -80,7 +80,7 @@ $node_subscriber->safe_psql('postgres', "DROP SUBSCRIPTION mysub1"); # Test ALTER PUBLICATION RENAME command during the replication # -# Test function for swaping name of publications +# Test function for swapping name of publications sub test_swap { my ($table_name, $pubname, $appname) = @_;
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2025-04-19 10:04                                     ` Michael Paquier <michael@paquier.xyz>
  2025-04-19 11:00                                       ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  1 sibling, 1 reply; 55+ messages in thread

From: Michael Paquier @ 2025-04-19 10:04 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>; David Rowley <dgrowleyml@gmail.com>

On Sat, Apr 19, 2025 at 11:00:00AM +0300, Alexander Lakhin wrote:
> I've gathered the following collection of typos and inconsistencies
> appeared since 2025-01-01:

Good finds, Alexander, particularly for the set of function and
variable names used in the comments that do not match with the
reality.  I've checked all these, and they're good for me.

> GIN_TUPLE_ -> GIN_TUPLE_H

This one is interested.  It should be harmless in practice, but it
could cause conflicts in theory.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-19 10:04                                     ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
@ 2025-04-19 11:00                                       ` Alexander Lakhin <exclusion@gmail.com>
  0 siblings, 0 replies; 55+ messages in thread

From: Alexander Lakhin @ 2025-04-19 11:00 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>; David Rowley <dgrowleyml@gmail.com>

Hello Michael,

19.04.2025 13:04, Michael Paquier wrote:
> Good finds, Alexander, particularly for the set of function and
> variable names used in the comments that do not match with the
> reality.  I've checked all these, and they're good for me.

Thank you for your attention to this!

>> GIN_TUPLE_ -> GIN_TUPLE_H
> This one is interested.  It should be harmless in practice, but it
> could cause conflicts in theory.
> --

I've included it in the collection because of:
#ifndef GIN_TUPLE_
...
#endif                                                   /* GIN_TUPLE_H */

Best regards,
Alexander Lakhin
Neon (https://neon.tech)

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2025-04-20 01:32                                     ` David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  1 sibling, 1 reply; 55+ messages in thread

From: David Rowley @ 2025-04-20 01:32 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>; Michael Paquier <michael@paquier.xyz>

On Sat, 19 Apr 2025 at 20:00, Alexander Lakhin <exclusion@gmail.com> wrote:
> I've gathered the following collection of typos and inconsistencies
> appeared since 2025-01-01:

Here are a few more fixes of a similar ilk. All new in 2025,
predominantly from the last few days before feature freeze.

The few I wasn't a full 100% certain on were "big big" *could* be used
as an adjective, but "huge" or "massive" would have been better. I
didn't see the need so assumed it was a mistake. The "now now"
technically is ok in South Africa [1], but I don't believe that
meaning was the intention.

I found these with a manual trawl through:

git grep -E "\b(\w+[^long|^that]+)\s+\1\b" -- ':!*.po' ':!*.out'
':!*.data' ':!*.dat' ':!*.xml'

David

[1] https://en.wikipedia.org/wiki/List_of_South_African_slang_words

Attachments:

fix_duplicate_words.patch (application/octet-stream, 6.3K) download diff --git a/contrib/amcheck/verify_heapam.c b/contrib/amcheck/verify_heapam.c index 2152d8ee577..aa9cccd1da4 100644 --- a/contrib/amcheck/verify_heapam.c +++ b/contrib/amcheck/verify_heapam.c @@ -460,7 +460,7 @@ verify_heapam(PG_FUNCTION_ARGS) else { /* - * It would not be safe to naively use use batchmode, as + * It would not be safe to naively use batchmode, as * heapcheck_read_stream_next_unskippable takes locks. It shouldn't be * too hard to convert though. */ diff --git a/contrib/pg_buffercache/pg_buffercache_pages.c b/contrib/pg_buffercache/pg_buffercache_pages.c index 6bfb9fb669e..4b007f6e1b0 100644 --- a/contrib/pg_buffercache/pg_buffercache_pages.c +++ b/contrib/pg_buffercache/pg_buffercache_pages.c @@ -450,8 +450,8 @@ pg_buffercache_numa_pages(PG_FUNCTION_ARGS) * locks, so the information of each buffer is self-consistent. * * This loop touches and stores addresses into os_page_ptrs[] as input - * to one big big move_pages(2) inquiry system call. Basically we ask - * for all memory pages for NBuffers. + * to one big move_pages(2) inquiry system call. Basically we ask for + * all memory pages for NBuffers. */ startptr = (char *) TYPEALIGN_DOWN(os_page_size, (char *) BufferGetBlock(1)); idx = 0; diff --git a/src/backend/access/nbtree/nbtpreprocesskeys.c b/src/backend/access/nbtree/nbtpreprocesskeys.c index 4f525f7b26f..1cc99e6cdf2 100644 --- a/src/backend/access/nbtree/nbtpreprocesskeys.c +++ b/src/backend/access/nbtree/nbtpreprocesskeys.c @@ -2051,7 +2051,7 @@ _bt_preprocess_array_keys_final(IndexScanDesc scan, int *keyDataMap) * the scan's BTArrayKeyInfo array, which is guaranteed to be large enough to * fit every so->arrayKeys[] entry. * - * Also sets *numSkipArrayKeys_out to the number of of skip arrays caller must + * Also sets *numSkipArrayKeys_out to the number of skip arrays caller must * add to the scan keys it'll output. Caller must add this many skip arrays: * one array for each of the most significant attributes that lack a = input * key (IS NULL keys count as = input keys here). The specific attributes diff --git a/src/backend/access/nbtree/nbtutils.c b/src/backend/access/nbtree/nbtutils.c index 9e27302fe81..8b025796127 100644 --- a/src/backend/access/nbtree/nbtutils.c +++ b/src/backend/access/nbtree/nbtutils.c @@ -2597,7 +2597,7 @@ _bt_set_startikey(IndexScanDesc scan, BTReadPageState *pstate) continue; } - /* Some = key (could be a a scalar = key, could be an array = key) */ + /* Some = key (could be a scalar = key, could be an array = key) */ Assert(key->sk_strategy == BTEqualStrategyNumber); if (!(key->sk_flags & SK_SEARCHARRAY)) diff --git a/src/backend/executor/execPartition.c b/src/backend/executor/execPartition.c index 9435cc21fe7..3f8a4cb5244 100644 --- a/src/backend/executor/execPartition.c +++ b/src/backend/executor/execPartition.c @@ -1983,8 +1983,8 @@ ExecInitPartitionExecPruning(PlanState *planstate, * account for any that were removed due to initial pruning; refer to the * condition in InitExecPartitionPruneContexts() that is used to determine * whether to do this. If no exec pruning needs to be done, we would thus - * leave the maps to be in an invalid invalid state, but that's ok since - * that data won't be consulted again (cf initial Assert in + * leave the maps to be in an invalid state, but that's ok since that data + * won't be consulted again (cf initial Assert in * ExecFindMatchingSubPlans). */ if (prunestate->do_exec_prune) diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index ab6317de5ae..a858f27cadc 100644 --- a/src/backend/utils/adt/pg_locale.c +++ b/src/backend/utils/adt/pg_locale.c @@ -551,7 +551,7 @@ PGLC_localeconv(void) "could not get lconv for LC_MONETARY = \"%s\", LC_NUMERIC = \"%s\": %m", locale_monetary, locale_numeric); - /* Must copy data now now so we can re-encode it. */ + /* Must copy data now so we can re-encode it. */ extlconv = &tmp; worklconv.decimal_point = strdup(extlconv->decimal_point); worklconv.thousands_sep = strdup(extlconv->thousands_sep); diff --git a/src/backend/utils/mmgr/mcxt.c b/src/backend/utils/mmgr/mcxt.c index 468d0250b2e..68f1cbcf9c2 100644 --- a/src/backend/utils/mmgr/mcxt.c +++ b/src/backend/utils/mmgr/mcxt.c @@ -1478,7 +1478,7 @@ ProcessGetMemoryContextInterrupt(void) summary); /* - * Allocate memory in this process's DSA for storing statistics of the the + * Allocate memory in this process's DSA for storing statistics of the * memory contexts upto max_stats, for contexts that don't fit within a * limit, a cumulative total is written as the last record in the DSA * segment. @@ -1488,8 +1488,8 @@ ProcessGetMemoryContextInterrupt(void) LWLockAcquire(&memCxtArea->lw_lock, LW_EXCLUSIVE); /* - * Create a DSA and send handle to the the client process after storing - * the context statistics. If number of contexts exceed a predefined + * Create a DSA and send handle to the client process after storing the + * context statistics. If number of contexts exceed a predefined * limit(8MB), a cumulative total is stored for such contexts. */ if (memCxtArea->memstats_dsa_handle == DSA_HANDLE_INVALID) diff --git a/src/bin/pg_upgrade/relfilenumber.c b/src/bin/pg_upgrade/relfilenumber.c index 79bc474a0bb..2959c07f0b8 100644 --- a/src/bin/pg_upgrade/relfilenumber.c +++ b/src/bin/pg_upgrade/relfilenumber.c @@ -424,8 +424,8 @@ swap_catalog_files(FileNameMap *maps, int size, const char *old_catalog_dir, * stage of pg_upgrade in swap mode, so we need to synchronize them * ourselves. We only do this for the catalog files because they were * created during pg_restore with fsync=off. We assume that the user - * data files files were properly persisted to disk when the user last - * shut it down. + * data files were properly persisted to disk when the user last shut + * it down. */ if (user_opts.do_sync) sync_queue_push(dest); diff --git a/src/include/storage/aio.h b/src/include/storage/aio.h index 9fe9d9ad9fa..f3726bc3dc5 100644 --- a/src/include/storage/aio.h +++ b/src/include/storage/aio.h @@ -159,7 +159,7 @@ struct PgAioTargetInfo { /* * To support executing using worker processes, the file descriptor for an - * IO may need to be be reopened in a different process. + * IO may need to be reopened in a different process. */ void (*reopen) (PgAioHandle *ioh);
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2025-04-20 22:42                                       ` David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 55+ messages in thread

From: David Rowley @ 2025-04-20 22:42 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>; Michael Paquier <michael@paquier.xyz>

On Sun, 20 Apr 2025 at 13:32, David Rowley <dgrowleyml@gmail.com> wrote:
> Here are a few more fixes of a similar ilk. All new in 2025,
> predominantly from the last few days before feature freeze.

I've pushed those ones.

David





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2025-04-20 23:21                                         ` Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  0 siblings, 1 reply; 55+ messages in thread

From: Michael Paquier @ 2025-04-20 23:21 UTC (permalink / raw)
  To: David Rowley <dgrowleyml@gmail.com>; +Cc: Alexander Lakhin <exclusion@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

On Mon, Apr 21, 2025 at 10:42:19AM +1200, David Rowley wrote:
> On Sun, 20 Apr 2025 at 13:32, David Rowley <dgrowleyml@gmail.com> wrote:
>> Here are a few more fixes of a similar ilk. All new in 2025,
>> predominantly from the last few days before feature freeze.
> 
> I've pushed those ones.

Thanks for sharing the command able to spot all these.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
@ 2025-04-21 01:52                                           ` David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  0 siblings, 1 reply; 55+ messages in thread

From: David Rowley @ 2025-04-21 01:52 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: Alexander Lakhin <exclusion@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

On Mon, 21 Apr 2025 at 11:21, Michael Paquier <michael@paquier.xyz> wrote:
> Thanks for sharing the command able to spot all these.

I just pushed a few more. The previous regex didn't account for the
duplicate word being on the next line. I dug up the following to find
the ones just committed in 78eda9e26.

ag "\s([a-zA-Z]{2,})[\s*]*\n\1\b"
ag "\s([a-zA-Z]{2,})\n(\s*\*\s*)\1\b"

cd doc
ag "\s([a-zA-Z]{1,})[\s*]*\n\s+\1\b"

David





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
@ 2026-01-01 08:00                                             ` Alexander Lakhin <exclusion@gmail.com>
  2026-01-04 23:02                                               ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2026-01-05 17:24                                               ` Re: Typos in the code and README Andres Freund <andres@anarazel.de>
  0 siblings, 2 replies; 55+ messages in thread

From: Alexander Lakhin @ 2026-01-01 08:00 UTC (permalink / raw)
  To: David Rowley <dgrowleyml@gmail.com>; Michael Paquier <michael@paquier.xyz>; +Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

Hello hackers,

Please look at another collection of typos, inconsistencies, and lost
entities (most of them introduced in 2025, but not all). In passing, I'm
proposing to synchronize parameter names in function declarations with
implementations.

Typos:
all-forzen -> all-frozen
Historcally -> Historically
insallation -> installation
maintanence_work_mem -> maintenance_work_mem
ndicates -> indicates
noacess -> noaccess
parititoned -> partititoned

Inconsistent spelling:
brin_wi_index -> brin_wi_idx
bufhdr -> bufHdr
FullTransactionID -> FullTransactionId
GroupExprInfos - > GroupingExprInfos
HEAP_PRUNE_FREEZE -> HEAP_PAGE_PRUNE_FREEZE (per 1937ed706)
inferPredExprs -> inferIndexExprs
newRightLink -> newRightlink
paramtypmode -> paramtypmod
pg_stat_replication_slot -> pg_stat_replication_slots
READ_WRITE_PARSE_PLAN_TREES -> WRITE_READ_PARSE_PLAN_TREES
DEFAULT_DEBUG_READ_WRITE_PARSE_PLAN_TREES -> DEFAULT_DEBUG_WRITE_READ_PARSE_PLAN_TREES
ReloptInfo -> RelOptInfo
retain_conflict_info -> retain_dead_tuples (see a850be2fe)
TIDStore -> TidStore

Inconsistent parameter naming:
RangeVarCallbackForStats(..., Oid oldRelid, ...) -> RangeVarCallbackForStats(..., Oid oldRelId, ...)
heap_lock_updated_tuple(..., TransactionId prior_rawxmax, ...) -> heap_lock_updated_tuple(..., TransactionId 
prior_raw_xmax, ...)
StartupLogicalDecodingStatus(bool status_in_control_file) -> StartupLogicalDecodingStatus(bool last_status)
FetchRelationStates(..., bool *has_pending_sequences, ...) -> FetchRelationStates(..., bool *has_pending_subsequences, ...)
PredicateLockTwoPhaseFinish(FullTransactionId xid, -> PredicateLockTwoPhaseFinish(FullTransactionId fxid,
PredicateLockTwoPhaseFinish(TransactionId xid, -> PredicateLockTwoPhaseFinish(FullTransactionId fxid,
SetSequence(Oid relid, int64 next, bool is_called) -> SetSequence(Oid relid, int64 next, bool iscalled)
fdatasync(int fildes) -> fdatasync(int fd)
gai_strerror(int ecode) -> gai_strerror(int errcode)
llvm_copy_attributes(LLVMValueRef from, LLVMValueRef to) -> llvm_copy_attributes(LLVMValueRef v_from, LLVMValueRef v_to)
ox1(PlannerInfo *root, Gene *mom, Gene *dad, ...) -> ox1(PlannerInfo *root, Gene *tour1, Gene *tour2, ...)
ox2(PlannerInfo *root, Gene *mom, Gene *dad, ...) -> ox2(PlannerInfo *root, Gene *tour1, Gene *tour2, ...)
pg_pread(..., size_t nbyte, ...) -> pg_pread(..., size_t size, ...)
pg_pwrite(..., size_t nbyte, ...) -> pg_pwrite(..., size_t size, ...)
pgwin32_connect(..., int namelen) -> pgwin32_connect(..., int addrlen)
replace_s(..., int * adjustment) -> replace_s(..., int * adjptr)

There is also
extern int        pgwin32_recv(SOCKET s, char *buf, int len, int flags);
vs
pgwin32_recv(SOCKET s, char *buf, int len, int f)
but I've left at as-is; probably the change should be made in the
implementation...

Orphan entities:
CheckXLogLogicalInfo -> remove (came with 67c20979c [1])
HAVE_ATOMIC_H, HAVE_MBARRIER_H -> remove (per 25f36066d)
#ifdef BS_DEBUG in contrib/ltree/ltxtquery_io.c -> remove (introduced with 1dedbf2da)

The patch is attached for your convenience.

[1] The implementation was removed in v34-0001-Toggle-*.patch:
https://www.postgresql.org/message-id/flat/CAD21AoCVLeLYq09pQPaWs%2BJwdni5FuJ8v2jgq-u9_uFbcp6UbA%40m...

Best regards,
Alexander

Attachments:

fix-typos-inconsistencies-2026-01-01.patch (text/x-patch, 23.8K) download diff --git a/contrib/ltree/ltxtquery_io.c b/contrib/ltree/ltxtquery_io.c index 3a2aa223c3e..91a2222eaa9 100644 --- a/contrib/ltree/ltxtquery_io.c +++ b/contrib/ltree/ltxtquery_io.c @@ -338,11 +338,6 @@ queryin(char *buf, struct Node *escontext) NODE *tmp; int32 pos = 0; -#ifdef BS_DEBUG - char pbuf[16384], - *cur; -#endif - /* init state */ state.buf = buf; state.state = WAITOPERAND; diff --git a/doc/src/sgml/ref/create_subscription.sgml b/doc/src/sgml/ref/create_subscription.sgml index 197be0c6f6b..b7dd361294b 100644 --- a/doc/src/sgml/ref/create_subscription.sgml +++ b/doc/src/sgml/ref/create_subscription.sgml @@ -562,7 +562,7 @@ CREATE SUBSCRIPTION <replaceable class="parameter">subscription_name</replaceabl </para> <para> This option is effective only when - <literal>retain_conflict_info</literal> is enabled and the apply + <literal>retain_dead_tuples</literal> is enabled and the apply worker associated with the subscription is active. </para> <warning> diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c index 469397e7344..9cdfc06aee7 100644 --- a/src/backend/access/heap/heapam.c +++ b/src/backend/access/heap/heapam.c @@ -87,7 +87,7 @@ static void compute_new_xmax_infomask(TransactionId xmax, uint16 old_infomask, uint16 *result_infomask2); static TM_Result heap_lock_updated_tuple(Relation rel, uint16 prior_infomask, - TransactionId prior_rawxmax, + TransactionId prior_raw_xmax, const ItemPointerData *prior_ctid, TransactionId xid, LockTupleMode mode); diff --git a/src/backend/access/heap/heapam_xlog.c b/src/backend/access/heap/heapam_xlog.c index 1823feff298..65e6fac065a 100644 --- a/src/backend/access/heap/heapam_xlog.c +++ b/src/backend/access/heap/heapam_xlog.c @@ -191,7 +191,7 @@ heap_xlog_prune_freeze(XLogReaderState *record) * unlogged and maintained heuristically, it often becomes stale on * standbys. If such a standby is later promoted and runs VACUUM, it will * skip recalculating free space for pages that were marked - * all-visible/all-forzen. FreeSpaceMapVacuum() can then propagate overly + * all-visible/all-frozen. FreeSpaceMapVacuum() can then propagate overly * optimistic free space values upward, causing future insertions to * select pages that turn out to be unusable. In bulk, this can lead to * long stalls. diff --git a/src/backend/access/rmgrdesc/gindesc.c b/src/backend/access/rmgrdesc/gindesc.c index 62e21f8c935..52442e4a7eb 100644 --- a/src/backend/access/rmgrdesc/gindesc.c +++ b/src/backend/access/rmgrdesc/gindesc.c @@ -161,7 +161,7 @@ gin_desc(StringInfo buf, XLogReaderState *record) appendStringInfo(buf, " prevTail: %u", xlrec->prevTail); if (xlrec->newRightlink != InvalidBlockNumber) - appendStringInfo(buf, " newRightLink: %u", + appendStringInfo(buf, " newRightlink: %u", xlrec->newRightlink); } break; diff --git a/src/backend/commands/subscriptioncmds.c b/src/backend/commands/subscriptioncmds.c index 4efd4685abc..4acc70c2d6f 100644 --- a/src/backend/commands/subscriptioncmds.c +++ b/src/backend/commands/subscriptioncmds.c @@ -1287,7 +1287,7 @@ CheckAlterSubOption(Subscription *sub, const char *option, * retreat in the calculated xmin, necessitating additional handling. * * XXX To address the above race conditions, we can define - * oldest_nonremovable_xid as FullTransactionID and adds the check to + * oldest_nonremovable_xid as FullTransactionId and adds the check to * disallow retreating the conflict slot's xmin. For now, we kept the * implementation simple by disallowing change to the retain_dead_tuples, * but in the future we can change this after some more analysis. diff --git a/src/backend/nodes/queryjumblefuncs.c b/src/backend/nodes/queryjumblefuncs.c index ffc230af427..75c8e1dd89e 100644 --- a/src/backend/nodes/queryjumblefuncs.c +++ b/src/backend/nodes/queryjumblefuncs.c @@ -684,7 +684,7 @@ _jumbleParam(JumbleState *jstate, Node *node) JUMBLE_FIELD(paramkind); JUMBLE_FIELD(paramid); JUMBLE_FIELD(paramtype); - /* paramtypmode and paramcollid are ignored */ + /* paramtypmod and paramcollid are ignored */ if (expr->paramkind == PARAM_EXTERN) { diff --git a/src/backend/optimizer/plan/analyzejoins.c b/src/backend/optimizer/plan/analyzejoins.c index e2784c01549..7328e1e2140 100644 --- a/src/backend/optimizer/plan/analyzejoins.c +++ b/src/backend/optimizer/plan/analyzejoins.c @@ -2285,7 +2285,7 @@ remove_self_joins_one_group(PlannerInfo *root, Relids relids) continue; /* - * Remove rrel ReloptInfo from the planner structures and the + * Remove rrel RelOptInfo from the planner structures and the * corresponding row mark. */ remove_self_join_rel(root, kmark, rmark, krel, rrel, restrictlist); diff --git a/src/backend/optimizer/plan/planner.c b/src/backend/optimizer/plan/planner.c index 1268ea92b6f..693ce171b1e 100644 --- a/src/backend/optimizer/plan/planner.c +++ b/src/backend/optimizer/plan/planner.c @@ -7922,7 +7922,7 @@ apply_scanjoin_target_to_paths(PlannerInfo *root, * However, there are several cases when this optimization is not safe. If * the rel isn't partitioned, then none of the paths will be Append or * MergeAppend paths, so we should definitely not do this. If it is - * parititoned but is a joinrel, it may have Append and MergeAppend paths, + * partititoned but is a joinrel, it may have Append and MergeAppend paths, * but it can also have join paths that we can't afford to discard. * * Some care is needed, because we have to allow diff --git a/src/backend/optimizer/util/plancat.c b/src/backend/optimizer/util/plancat.c index 43ca5fd0213..c2b85244c07 100644 --- a/src/backend/optimizer/util/plancat.c +++ b/src/backend/optimizer/util/plancat.c @@ -937,7 +937,7 @@ infer_arbiter_indexes(PlannerInfo *root) Assert(idxForm->indisready); /* - * Set up inferElems and inferPredExprs to match the + * Set up inferElems and inferIndexExprs to match the * constraint index, so that we can match them in the loop * below. */ diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c index 16b0adc172c..c293603a204 100644 --- a/src/backend/partitioning/partbounds.c +++ b/src/backend/partitioning/partbounds.c @@ -4989,7 +4989,7 @@ satisfies_hash_partition(PG_FUNCTION_ARGS) * second_name: name of the second partition * second_bound: bound of the second partition * defaultPart: true if one of the new partitions is DEFAULT - * is_merge: true ndicates the operation is MERGE PARTITIONS; + * is_merge: true indicates the operation is MERGE PARTITIONS; * false indicates the operation is SPLIT PARTITION. * pstate: pointer to ParseState struct for determining error position */ diff --git a/src/backend/replication/logical/slotsync.c b/src/backend/replication/logical/slotsync.c index 0feebffd431..7d616689120 100644 --- a/src/backend/replication/logical/slotsync.c +++ b/src/backend/replication/logical/slotsync.c @@ -173,7 +173,7 @@ update_slotsync_skip_stats(SlotSyncSkipReason skip_reason) slot = MyReplicationSlot; /* - * Update the slot sync related stats in pg_stat_replication_slot when a + * Update the slot sync related stats in pg_stat_replication_slots when a * slot sync is skipped */ if (skip_reason != SS_SKIP_NONE) diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index eb55102b0d7..4b459163e49 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -4280,7 +4280,7 @@ DebugPrintBufferRefcount(Buffer buffer) backend = INVALID_PROC_NUMBER; } - /* theoretically we should lock the bufhdr here */ + /* theoretically we should lock the bufHdr here */ buf_state = pg_atomic_read_u32(&buf->state); result = psprintf("[%03d] (rel=%s, blockNum=%u, flags=0x%x, refcount=%u %d)", diff --git a/src/backend/storage/lmgr/predicate.c b/src/backend/storage/lmgr/predicate.c index 149c69a1873..361dbdb1070 100644 --- a/src/backend/storage/lmgr/predicate.c +++ b/src/backend/storage/lmgr/predicate.c @@ -190,7 +190,7 @@ * two-phase commit support * AtPrepare_PredicateLocks(void); * PostPrepare_PredicateLocks(TransactionId xid); - * PredicateLockTwoPhaseFinish(TransactionId xid, bool isCommit); + * PredicateLockTwoPhaseFinish(FullTransactionId fxid, bool isCommit); * predicatelock_twophase_recover(FullTransactionId fxid, uint16 info, * void *recdata, uint32 len); */ diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c index b7e94ca45bd..4393eb1eac7 100644 --- a/src/backend/utils/init/postinit.c +++ b/src/backend/utils/init/postinit.c @@ -418,7 +418,7 @@ CheckMyDatabase(const char *name, bool am_superuser, bool override_allow_connect ctype = TextDatumGetCString(datum); /* - * Historcally, we set LC_COLLATE from datcollate, as well. That's no + * Historically, we set LC_COLLATE from datcollate, as well. That's no * longer necessary because all collation behavior is handled through * pg_locale_t. */ diff --git a/src/backend/utils/misc/guc_parameters.dat b/src/backend/utils/misc/guc_parameters.dat index ac0c7c36c56..f77b230aaca 100644 --- a/src/backend/utils/misc/guc_parameters.dat +++ b/src/backend/utils/misc/guc_parameters.dat @@ -694,7 +694,7 @@ short_desc => 'Set this to force all parse and plan trees to be passed through outfuncs.c/readfuncs.c, to facilitate catching errors and omissions in those modules.', flags => 'GUC_NOT_IN_SAMPLE', variable => 'Debug_write_read_parse_plan_trees', - boot_val => 'DEFAULT_DEBUG_READ_WRITE_PARSE_PLAN_TREES', + boot_val => 'DEFAULT_DEBUG_WRITE_READ_PARSE_PLAN_TREES', ifdef => 'DEBUG_NODE_TESTS_ENABLED', }, diff --git a/src/bin/pg_upgrade/t/007_multixact_conversion.pl b/src/bin/pg_upgrade/t/007_multixact_conversion.pl index 14db40e45ed..362a7517cc2 100644 --- a/src/bin/pg_upgrade/t/007_multixact_conversion.pl +++ b/src/bin/pg_upgrade/t/007_multixact_conversion.pl @@ -228,7 +228,7 @@ sub read_multixid_fields # Reset a cluster's next multixid and mxoffset to given values. # -# Note: This is used on the old insallation, so the command arguments +# Note: This is used on the old installation, so the command arguments # and the output parsing used here must work with all pre-v19 # PostgreSQL versions supported by the test. sub reset_mxid_mxoffset_pre_v19 diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index f7e4ae3843c..0067894e2ee 100644 --- a/src/include/access/heapam.h +++ b/src/include/access/heapam.h @@ -293,7 +293,7 @@ typedef struct PruneFreezeResult * is only valid if we froze some tuples (nfrozen > 0), and all_frozen is * true. * - * These are only set if the HEAP_PRUNE_FREEZE option is set. + * These are only set if the HEAP_PAGE_PRUNE_FREEZE option is set. */ bool all_visible; bool all_frozen; diff --git a/src/include/c.h b/src/include/c.h index 811d6d0110c..175daed0ef0 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -1262,7 +1262,7 @@ typedef struct PGAlignedXLogBlock */ #if !HAVE_DECL_FDATASYNC -extern int fdatasync(int fildes); +extern int fdatasync(int fd); #endif /* diff --git a/src/include/commands/sequence.h b/src/include/commands/sequence.h index 3f8d353c49e..8826bcbf535 100644 --- a/src/include/commands/sequence.h +++ b/src/include/commands/sequence.h @@ -47,7 +47,7 @@ extern ObjectAddress AlterSequence(ParseState *pstate, AlterSeqStmt *stmt); extern void SequenceChangePersistence(Oid relid, char newrelpersistence); extern void DeleteSequenceTuple(Oid relid); extern void ResetSequence(Oid seq_relid); -extern void SetSequence(Oid relid, int64 next, bool is_called); +extern void SetSequence(Oid relid, int64 next, bool iscalled); extern void ResetSequenceCaches(void); #endif /* SEQUENCE_H */ diff --git a/src/include/common/int128.h b/src/include/common/int128.h index 62aae1bc6a7..913c33c4607 100644 --- a/src/include/common/int128.h +++ b/src/include/common/int128.h @@ -346,7 +346,7 @@ int128_div_mod_int32(INT128 *i128, int32 v, int32 *remainder) n_lo = i128->lo; } - /* denomimator: absolute value of v */ + /* denominator: absolute value of v */ d = abs(v); /* quotient and remainder of high 64 bits */ diff --git a/src/include/jit/llvmjit.h b/src/include/jit/llvmjit.h index b3c75022f55..c756372898f 100644 --- a/src/include/jit/llvmjit.h +++ b/src/include/jit/llvmjit.h @@ -114,7 +114,7 @@ extern void llvm_split_symbol_name(const char *name, char **modname, char **func extern LLVMTypeRef llvm_pg_var_type(const char *varname); extern LLVMTypeRef llvm_pg_var_func_type(const char *varname); extern LLVMValueRef llvm_pg_func(LLVMModuleRef mod, const char *funcname); -extern void llvm_copy_attributes(LLVMValueRef from, LLVMValueRef to); +extern void llvm_copy_attributes(LLVMValueRef v_from, LLVMValueRef v_to); extern LLVMValueRef llvm_function_reference(LLVMJitContext *context, LLVMBuilderRef builder, LLVMModuleRef mod, diff --git a/src/include/nodes/pathnodes.h b/src/include/nodes/pathnodes.h index b5ff456ef7f..0d5ec4f0d6d 100644 --- a/src/include/nodes/pathnodes.h +++ b/src/include/nodes/pathnodes.h @@ -404,7 +404,7 @@ struct PlannerInfo /* list of AggClauseInfos */ List *agg_clause_list; - /* list of GroupExprInfos */ + /* list of GroupingExprInfos */ List *group_expr_list; /* list of plain Vars contained in targetlist and havingQual */ diff --git a/src/include/optimizer/geqo_recombination.h b/src/include/optimizer/geqo_recombination.h index af394a22460..28ffa108352 100644 --- a/src/include/optimizer/geqo_recombination.h +++ b/src/include/optimizer/geqo_recombination.h @@ -79,11 +79,11 @@ extern void px(PlannerInfo *root, Gene *tour1, Gene *tour2, Gene *offspring, int num_gene, City * city_table); /* order crossover [OX1] according to Davis */ -extern void ox1(PlannerInfo *root, Gene *mom, Gene *dad, Gene *offspring, +extern void ox1(PlannerInfo *root, Gene *tour1, Gene *tour2, Gene *offspring, int num_gene, City * city_table); /* order crossover [OX2] according to Syswerda */ -extern void ox2(PlannerInfo *root, Gene *mom, Gene *dad, Gene *offspring, +extern void ox2(PlannerInfo *root, Gene *tour1, Gene *tour2, Gene *offspring, int num_gene, City * city_table); #endif /* GEQO_RECOMBINATION_H */ diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index f0091b09cbe..2dd8f6b9a38 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -54,9 +54,6 @@ /* Define to 1 if you have the `append_history' function. */ #undef HAVE_APPEND_HISTORY -/* Define to 1 if you have the <atomic.h> header file. */ -#undef HAVE_ATOMIC_H - /* Define to 1 if you have the `backtrace_symbols' function. */ #undef HAVE_BACKTRACE_SYMBOLS @@ -281,9 +278,6 @@ /* Define to 1 if you have the `localeconv_l' function. */ #undef HAVE_LOCALECONV_L -/* Define to 1 if you have the <mbarrier.h> header file. */ -#undef HAVE_MBARRIER_H - /* Define to 1 if you have the `mbstowcs_l' function. */ #undef HAVE_MBSTOWCS_L diff --git a/src/include/port.h b/src/include/port.h index af604fddbe7..9dbcf959bfd 100644 --- a/src/include/port.h +++ b/src/include/port.h @@ -485,7 +485,7 @@ extern char *strsep(char **stringp, const char *delim); #endif #if !HAVE_DECL_TIMINGSAFE_BCMP -extern int timingsafe_bcmp(const void *b1, const void *b2, size_t len); +extern int timingsafe_bcmp(const void *b1, const void *b2, size_t n); #endif /* diff --git a/src/include/port/win32/sys/socket.h b/src/include/port/win32/sys/socket.h index f2b475df5e5..4fe7693ad14 100644 --- a/src/include/port/win32/sys/socket.h +++ b/src/include/port/win32/sys/socket.h @@ -29,6 +29,6 @@ */ #undef gai_strerror -extern const char *gai_strerror(int ecode); +extern const char *gai_strerror(int errcode); #endif /* WIN32_SYS_SOCKET_H */ diff --git a/src/include/port/win32_port.h b/src/include/port/win32_port.h index 0f4b645f9af..1a29ada5898 100644 --- a/src/include/port/win32_port.h +++ b/src/include/port/win32_port.h @@ -505,7 +505,7 @@ extern SOCKET pgwin32_socket(int af, int type, int protocol); extern int pgwin32_bind(SOCKET s, struct sockaddr *addr, int addrlen); extern int pgwin32_listen(SOCKET s, int backlog); extern SOCKET pgwin32_accept(SOCKET s, struct sockaddr *addr, int *addrlen); -extern int pgwin32_connect(SOCKET s, const struct sockaddr *name, int namelen); +extern int pgwin32_connect(SOCKET s, const struct sockaddr *addr, int addrlen); extern int pgwin32_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timeval *timeout); extern int pgwin32_recv(SOCKET s, char *buf, int len, int flags); extern int pgwin32_send(SOCKET s, const void *buf, int len, int flags); @@ -581,9 +581,9 @@ typedef unsigned short mode_t; #endif /* in port/win32pread.c */ -extern ssize_t pg_pread(int fd, void *buf, size_t nbyte, pgoff_t offset); +extern ssize_t pg_pread(int fd, void *buf, size_t size, pgoff_t offset); /* in port/win32pwrite.c */ -extern ssize_t pg_pwrite(int fd, const void *buf, size_t nbyte, pgoff_t offset); +extern ssize_t pg_pwrite(int fd, const void *buf, size_t size, pgoff_t offset); #endif /* PG_WIN32_PORT_H */ diff --git a/src/include/replication/logicalctl.h b/src/include/replication/logicalctl.h index fbe4fa54976..fdac5242be5 100644 --- a/src/include/replication/logicalctl.h +++ b/src/include/replication/logicalctl.h @@ -16,12 +16,11 @@ extern Size LogicalDecodingCtlShmemSize(void); extern void LogicalDecodingCtlShmemInit(void); -extern void StartupLogicalDecodingStatus(bool status_in_control_file); +extern void StartupLogicalDecodingStatus(bool last_status); extern void InitializeProcessXLogLogicalInfo(void); extern bool ProcessBarrierUpdateXLogLogicalInfo(void); extern bool IsLogicalDecodingEnabled(void); extern bool IsXLogLogicalInfoEnabled(void); -extern bool CheckXLogLogicalInfo(void); extern void AtEOXact_LogicalCtl(void); extern void EnsureLogicalDecodingEnabled(void); extern void EnableLogicalDecoding(void); diff --git a/src/include/replication/worker_internal.h b/src/include/replication/worker_internal.h index f081619f151..505aa5099ea 100644 --- a/src/include/replication/worker_internal.h +++ b/src/include/replication/worker_internal.h @@ -294,7 +294,7 @@ extern void launch_sync_worker(LogicalRepWorkerType wtype, int nsyncworkers, Oid relid, TimestampTz *last_start_time); extern void ProcessSyncingRelations(XLogRecPtr current_lsn); extern void FetchRelationStates(bool *has_pending_subtables, - bool *has_pending_sequences, bool *started_tx); + bool *has_pending_subsequences, bool *started_tx); extern void stream_start_internal(TransactionId xid, bool first_segment); extern void stream_stop_internal(TransactionId xid); diff --git a/src/include/snowball/libstemmer/header.h b/src/include/snowball/libstemmer/header.h index bf172d5b9bd..ef5a5464067 100644 --- a/src/include/snowball/libstemmer/header.h +++ b/src/include/snowball/libstemmer/header.h @@ -45,7 +45,7 @@ extern int eq_v_b(struct SN_env * z, const symbol * p); extern int find_among(struct SN_env * z, const struct among * v, int v_size); extern int find_among_b(struct SN_env * z, const struct among * v, int v_size); -extern int replace_s(struct SN_env * z, int c_bra, int c_ket, int s_size, const symbol * s, int * adjustment); +extern int replace_s(struct SN_env * z, int c_bra, int c_ket, int s_size, const symbol * s, int * adjptr); extern int slice_from_s(struct SN_env * z, int s_size, const symbol * s); extern int slice_from_v(struct SN_env * z, const symbol * p); extern int slice_del(struct SN_env * z); diff --git a/src/include/statistics/stat_utils.h b/src/include/statistics/stat_utils.h index e2bc62a5614..f622be09355 100644 --- a/src/include/statistics/stat_utils.h +++ b/src/include/statistics/stat_utils.h @@ -35,7 +35,7 @@ extern bool stats_check_arg_pair(FunctionCallInfo fcinfo, int argnum1, int argnum2); extern void RangeVarCallbackForStats(const RangeVar *relation, - Oid relId, Oid oldRelid, void *arg); + Oid relId, Oid oldRelId, void *arg); extern bool stats_fill_fcinfo_from_arg_pairs(FunctionCallInfo pairs_fcinfo, FunctionCallInfo positional_fcinfo, diff --git a/src/include/storage/predicate.h b/src/include/storage/predicate.h index 8f5f0348a23..040d8cd82d2 100644 --- a/src/include/storage/predicate.h +++ b/src/include/storage/predicate.h @@ -73,7 +73,7 @@ extern void PreCommit_CheckForSerializationFailure(void); /* two-phase commit support */ extern void AtPrepare_PredicateLocks(void); extern void PostPrepare_PredicateLocks(FullTransactionId fxid); -extern void PredicateLockTwoPhaseFinish(FullTransactionId xid, bool isCommit); +extern void PredicateLockTwoPhaseFinish(FullTransactionId fxid, bool isCommit); extern void predicatelock_twophase_recover(FullTransactionId fxid, uint16 info, void *recdata, uint32 len); diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h index f21ec37da89..2f8146d66f7 100644 --- a/src/include/utils/guc.h +++ b/src/include/utils/guc.h @@ -266,10 +266,10 @@ extern PGDLLIMPORT bool Debug_raw_expression_coverage_test; #define DEFAULT_DEBUG_COPY_PARSE_PLAN_TREES false #endif -#ifdef READ_WRITE_PARSE_PLAN_TREES -#define DEFAULT_DEBUG_READ_WRITE_PARSE_PLAN_TREES true +#ifdef WRITE_READ_PARSE_PLAN_TREES +#define DEFAULT_DEBUG_WRITE_READ_PARSE_PLAN_TREES true #else -#define DEFAULT_DEBUG_READ_WRITE_PARSE_PLAN_TREES false +#define DEFAULT_DEBUG_WRITE_READ_PARSE_PLAN_TREES false #endif #ifdef RAW_EXPRESSION_COVERAGE_TEST diff --git a/src/test/modules/brin/t/01_workitems.pl b/src/test/modules/brin/t/01_workitems.pl index 0744b8825ef..a19a1d83dc0 100644 --- a/src/test/modules/brin/t/01_workitems.pl +++ b/src/test/modules/brin/t/01_workitems.pl @@ -39,7 +39,7 @@ $node->safe_psql( my $count = $node->safe_psql('postgres', "select count(*) from brin_page_items(get_raw_page('brin_wi_idx', 2), 'brin_wi_idx'::regclass)" ); -is($count, '1', "initial brin_wi_index index state is correct"); +is($count, '1', "initial brin_wi_idx index state is correct"); $count = $node->safe_psql('postgres', "select count(*) from brin_page_items(get_raw_page('brin_packdate_idx', 2), 'brin_packdate_idx'::regclass)" ); diff --git a/src/test/recovery/t/048_vacuum_horizon_floor.pl b/src/test/recovery/t/048_vacuum_horizon_floor.pl index 9cdf6cee8a7..cdcc2e1661c 100644 --- a/src/test/recovery/t/048_vacuum_horizon_floor.pl +++ b/src/test/recovery/t/048_vacuum_horizon_floor.pl @@ -54,7 +54,7 @@ my $psql_primaryB = # Our test relies on two rounds of index vacuuming for reasons elaborated # later. To trigger two rounds of index vacuuming, we must fill up the -# TIDStore with dead items partway through a vacuum of the table. The number +# TidStore with dead items partway through a vacuum of the table. The number # of rows is just enough to ensure we exceed maintenance_work_mem on all # supported platforms, while keeping test runtime as short as we can. my $nrows = 2000; @@ -225,7 +225,7 @@ $node_primary->poll_query_until( # Move the cursor forward to the next 7. We inserted the 7 much later, so # advancing the cursor should allow vacuum to proceed vacuuming most pages of -# the relation. Because we set maintanence_work_mem sufficiently low, we +# the relation. Because we set maintenance_work_mem sufficiently low, we # expect that a round of index vacuuming has happened and that the vacuum is # now waiting for the cursor to release its pin on the last page of the # relation. diff --git a/src/tools/valgrind.supp b/src/tools/valgrind.supp index 3880007dfb3..d56794b4f7e 100644 --- a/src/tools/valgrind.supp +++ b/src/tools/valgrind.supp @@ -182,7 +182,7 @@ } # NUMA introspection requires touching memory first, and some of it may -# be marked as noacess (e.g. unpinned buffers). So just ignore that. +# be marked as noaccess (e.g. unpinned buffers). So just ignore that. { pg_numa_touch_mem_if_required Memcheck:Addr4
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2026-01-04 23:02                                               ` Michael Paquier <michael@paquier.xyz>
  2026-01-04 23:32                                                 ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 55+ messages in thread

From: Michael Paquier @ 2026-01-04 23:02 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

On Thu, Jan 01, 2026 at 10:00:00AM +0200, Alexander Lakhin wrote:
> READ_WRITE_PARSE_PLAN_TREES -> WRITE_READ_PARSE_PLAN_TREES
> DEFAULT_DEBUG_READ_WRITE_PARSE_PLAN_TREES -> DEFAULT_DEBUG_WRITE_READ_PARSE_PLAN_TREES

I thought that this was a bug first, but we also use this name for the
default value.

> replace_s(..., int * adjustment) -> replace_s(..., int * adjptr)

Updating this one contradicts with the upstream sources, see
b464e51ab32f that has done the opposite switch.

> There is also
> extern int        pgwin32_recv(SOCKET s, char *buf, int len, int flags);
> vs
> pgwin32_recv(SOCKET s, char *buf, int len, int f)
> but I've left at as-is; probably the change should be made in the
> implementation...

Using "flags" would be confusing I think as things stand, the code
casts a DWORD with the same name.

> Orphan entities:
> HAVE_ATOMIC_H, HAVE_MBARRIER_H -> remove (per 25f36066d)

Indeed..  It seems slightly cleaner to remove these separately.  Will
do so.

> #ifdef BS_DEBUG in contrib/ltree/ltxtquery_io.c -> remove (introduced with 1dedbf2da)

I am wondering if BS stands for what it means or if it's something
else..
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-01-04 23:02                                               ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
@ 2026-01-04 23:32                                                 ` Tom Lane <tgl@sss.pgh.pa.us>
  2026-01-05 00:35                                                   ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2026-01-05 21:39                                                   ` Re: Typos in the code and README Andres Freund <andres@anarazel.de>
  0 siblings, 2 replies; 55+ messages in thread

From: Tom Lane @ 2026-01-04 23:32 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: Alexander Lakhin <exclusion@gmail.com>; David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

Michael Paquier <michael@paquier.xyz> writes:
> On Thu, Jan 01, 2026 at 10:00:00AM +0200, Alexander Lakhin wrote:
>> replace_s(..., int * adjustment) -> replace_s(..., int * adjptr)

> Updating this one contradicts with the upstream sources, see
> b464e51ab32f that has done the opposite switch.

It looks like upstream has fixed the problem -- not by making the
two instances match, but by removing the parameter altogether
(see their recent commit 16edd5abb9ce7386e9208b998cd43524480cb801).

Maybe it's time for another sync with upstream?  But if we don't
feel like doing that right now, I think Alexander's proposed patch
is okay.  It won't make the next sync any harder.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-01-04 23:02                                               ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2026-01-04 23:32                                                 ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
@ 2026-01-05 00:35                                                   ` Michael Paquier <michael@paquier.xyz>
  2026-01-05 00:46                                                     ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 55+ messages in thread

From: Michael Paquier @ 2026-01-05 00:35 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Alexander Lakhin <exclusion@gmail.com>; David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

On Sun, Jan 04, 2026 at 06:32:14PM -0500, Tom Lane wrote:
> It looks like upstream has fixed the problem -- not by making the
> two instances match, but by removing the parameter altogether
> (see their recent commit 16edd5abb9ce7386e9208b998cd43524480cb801).

Ah, you mean as in [1] as mentioned in [2].  I didn't know this part.
A new sync sounds like a good idea.  I am not sure to see a point in
changing the same thing twice, so...

> Maybe it's time for another sync with upstream?

This sounds like a good idea to me.  The last sync has been done in
February 2025, so it could be done in the next couple of weeks.

[1]: https://github.com/snowballstem/snowball.git
[2]: https://snowballstem.org/download.html
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-01-04 23:02                                               ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2026-01-04 23:32                                                 ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
  2026-01-05 00:35                                                   ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
@ 2026-01-05 00:46                                                     ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 55+ messages in thread

From: Tom Lane @ 2026-01-05 00:46 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: Alexander Lakhin <exclusion@gmail.com>; David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

Michael Paquier <michael@paquier.xyz> writes:
> On Sun, Jan 04, 2026 at 06:32:14PM -0500, Tom Lane wrote:
>> Maybe it's time for another sync with upstream?

> This sounds like a good idea to me.  The last sync has been done in
> February 2025, so it could be done in the next couple of weeks.

I can look into that tomorrow or so, if there's not objections.
It looks like nothing exciting has gone into snowball in the last
month or so, so right now might be a good time to sync.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-01-04 23:02                                               ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2026-01-04 23:32                                                 ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
@ 2026-01-05 21:39                                                   ` Andres Freund <andres@anarazel.de>
  2026-01-05 21:43                                                     ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 1 reply; 55+ messages in thread

From: Andres Freund @ 2026-01-05 21:39 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Michael Paquier <michael@paquier.xyz>; Alexander Lakhin <exclusion@gmail.com>; David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

Hi,

On 2026-01-04 18:32:14 -0500, Tom Lane wrote:
> Michael Paquier <michael@paquier.xyz> writes:
> > On Thu, Jan 01, 2026 at 10:00:00AM +0200, Alexander Lakhin wrote:
> >> replace_s(..., int * adjustment) -> replace_s(..., int * adjptr)
> 
> > Updating this one contradicts with the upstream sources, see
> > b464e51ab32f that has done the opposite switch.
> 
> It looks like upstream has fixed the problem -- not by making the
> two instances match, but by removing the parameter altogether
> (see their recent commit 16edd5abb9ce7386e9208b998cd43524480cb801).
> 
> Maybe it's time for another sync with upstream?  But if we don't
> feel like doing that right now, I think Alexander's proposed patch
> is okay.  It won't make the next sync any harder.

Your recent commit unfortunately doesn't build with meson, due to headers now
not just residing in src/include/snowball/ but also
src/include/snowball/libstemmer/.

The fix is trivial - happy to push it if you want?

Greetings,

Andres





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-01-04 23:02                                               ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2026-01-04 23:32                                                 ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
  2026-01-05 21:39                                                   ` Re: Typos in the code and README Andres Freund <andres@anarazel.de>
@ 2026-01-05 21:43                                                     ` Tom Lane <tgl@sss.pgh.pa.us>
  2026-01-05 21:50                                                       ` Re: Typos in the code and README Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 55+ messages in thread

From: Tom Lane @ 2026-01-05 21:43 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Michael Paquier <michael@paquier.xyz>; Alexander Lakhin <exclusion@gmail.com>; David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

Andres Freund <andres@anarazel.de> writes:
> Your recent commit unfortunately doesn't build with meson, due to headers now
> not just residing in src/include/snowball/ but also
> src/include/snowball/libstemmer/.

Yeah --- but that was true before too.  I don't quite see how
it built under meson before.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-01-04 23:02                                               ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2026-01-04 23:32                                                 ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
  2026-01-05 21:39                                                   ` Re: Typos in the code and README Andres Freund <andres@anarazel.de>
  2026-01-05 21:43                                                     ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
@ 2026-01-05 21:50                                                       ` Andres Freund <andres@anarazel.de>
  2026-01-05 21:55                                                         ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 55+ messages in thread

From: Andres Freund @ 2026-01-05 21:50 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Michael Paquier <michael@paquier.xyz>; Alexander Lakhin <exclusion@gmail.com>; David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

Hi,

On 2026-01-05 16:43:02 -0500, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > Your recent commit unfortunately doesn't build with meson, due to headers now
> > not just residing in src/include/snowball/ but also
> > src/include/snowball/libstemmer/.
> 
> Yeah --- but that was true before too.  I don't quite see how
> it built under meson before.

Previously the only thing including snowball/libstemmer/*h files was
src/backend/snowball/dict_snowball.c, which included them relative to
src/includ. But now they are also included from
src/backend/snowball/libstemmer/stem_*.c, just as
> #include "stem_*.h"
thereby requiring include/snowball/libstemmer to be an include path.

Greetings,

Andres Freund





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-01-04 23:02                                               ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2026-01-04 23:32                                                 ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
  2026-01-05 21:39                                                   ` Re: Typos in the code and README Andres Freund <andres@anarazel.de>
  2026-01-05 21:43                                                     ` Re: Typos in the code and README Tom Lane <tgl@sss.pgh.pa.us>
  2026-01-05 21:50                                                       ` Re: Typos in the code and README Andres Freund <andres@anarazel.de>
@ 2026-01-05 21:55                                                         ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 55+ messages in thread

From: Tom Lane @ 2026-01-05 21:55 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Michael Paquier <michael@paquier.xyz>; Alexander Lakhin <exclusion@gmail.com>; David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

Andres Freund <andres@anarazel.de> writes:
> On 2026-01-05 16:43:02 -0500, Tom Lane wrote:
>> Yeah --- but that was true before too.  I don't quite see how
>> it built under meson before.

> Previously the only thing including snowball/libstemmer/*h files was
> src/backend/snowball/dict_snowball.c, which included them relative to
> src/includ. But now they are also included from
> src/backend/snowball/libstemmer/stem_*.c,

Oh, you're right.  So it worked without any Makefile changes because
the Makefile already had

override CPPFLAGS := -I$(top_srcdir)/src/include/snowball \
	-I$(top_srcdir)/src/include/snowball/libstemmer $(CPPFLAGS)

but meson.build had failed to duplicate that.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2026-01-05 17:24                                               ` Andres Freund <andres@anarazel.de>
  2026-01-05 19:00                                                 ` Re: Typos in the code and README Alexander Law <exclusion@gmail.com>
  1 sibling, 1 reply; 55+ messages in thread

From: Andres Freund @ 2026-01-05 17:24 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: David Rowley <dgrowleyml@gmail.com>; Michael Paquier <michael@paquier.xyz>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

Hi,

On 2026-01-01 10:00:00 +0200, Alexander Lakhin wrote:
> bufhdr -> bufHdr

I just ran into this one due to a rebase conflict. Obviously trivial to
resolve. But what's the point of this change?  If you wanted to fix the
arguably wrong name, it'd have to be "buf" or "BufferDesc", as there's no
variable named either bufhdr or bufHdr.

Having random stuff mixed into these changes is one of the reasons why I so
dislike them.

Greetings,

Andres Freund





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-01-05 17:24                                               ` Re: Typos in the code and README Andres Freund <andres@anarazel.de>
@ 2026-01-05 19:00                                                 ` Alexander Law <exclusion@gmail.com>
  2026-01-06 03:27                                                   ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  0 siblings, 1 reply; 55+ messages in thread

From: Alexander Law @ 2026-01-05 19:00 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: David Rowley <dgrowleyml@gmail.com>; Michael Paquier <michael@paquier.xyz>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

Hello Andres,

On Mon, Jan 5, 2026, 21:24 Andres Freund <andres@anarazel.de> wrote:

>
> On 2026-01-01 10:00:00 +0200, Alexander Lakhin wrote:
> > bufhdr -> bufHdr
>
> I just ran into this one due to a rebase conflict. Obviously trivial to
> resolve. But what's the point of this change?  If you wanted to fix the
> arguably wrong name, it'd have to be "buf" or "BufferDesc", as there's no
> variable named either bufhdr or bufHdr.
>

I thought that the initial spelling was meant to reference bufHdr variable
as if it was declared locally as we can see this name in other functions in
bufmgr.c (at 5d508736).

The point was to have no references to entities that you can't find in the
source tree.


> Having random stuff mixed into these changes is one of the reasons why I so
> dislike them.
>

I'm not sure how to arrange such changes to process them efficiently --
they could be split to multiple "Fix a typo" patches, of course.

By the way, I've just noticed that I fixed only one out of two typos in
"parititoned", so it's still spelled wrong: "partititoned". Sorry.

Best regards,
Alexander

>

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-01-05 17:24                                               ` Re: Typos in the code and README Andres Freund <andres@anarazel.de>
  2026-01-05 19:00                                                 ` Re: Typos in the code and README Alexander Law <exclusion@gmail.com>
@ 2026-01-06 03:27                                                   ` Michael Paquier <michael@paquier.xyz>
  2026-01-06 13:43                                                     ` Re: Typos in the code and README Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 55+ messages in thread

From: Michael Paquier @ 2026-01-06 03:27 UTC (permalink / raw)
  To: Alexander Law <exclusion@gmail.com>; +Cc: Andres Freund <andres@anarazel.de>; David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

On Mon, Jan 05, 2026 at 11:00:00PM +0400, Alexander Law wrote:
> I thought that the initial spelling was meant to reference bufHdr variable
> as if it was declared locally as we can see this name in other functions in
> bufmgr.c (at 5d508736).

Yeah, I was under the same impression as yours.  The older pattern
could not be found in the tree, the new one is all spread around.

> By the way, I've just noticed that I fixed only one out of two typos in
> "parititoned", so it's still spelled wrong: "partititoned". Sorry.

Meh.  And here I thought that I read all these diffs correctly.  Will
adjust in a bit.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-01-01 23:22                                 ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-19 08:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2025-04-20 01:32                                     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 22:42                                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2025-04-20 23:21                                         ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-04-21 01:52                                           ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2026-01-01 08:00                                             ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-01-05 17:24                                               ` Re: Typos in the code and README Andres Freund <andres@anarazel.de>
  2026-01-05 19:00                                                 ` Re: Typos in the code and README Alexander Law <exclusion@gmail.com>
  2026-01-06 03:27                                                   ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
@ 2026-01-06 13:43                                                     ` Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 55+ messages in thread

From: Andres Freund @ 2026-01-06 13:43 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; +Cc: Alexander Law <exclusion@gmail.com>; David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>; Daniel Gustafsson <daniel@yesql.se>; Heikki Linnakangas <hlinnaka@iki.fi>

Hi,

On 2026-01-06 12:27:29 +0900, Michael Paquier wrote:
> On Mon, Jan 05, 2026 at 11:00:00PM +0400, Alexander Law wrote:
> > I thought that the initial spelling was meant to reference bufHdr variable
> > as if it was declared locally as we can see this name in other functions in
> > bufmgr.c (at 5d508736).
> 
> Yeah, I was under the same impression as yours.  The older pattern
> could not be found in the tree, the new one is all spread around.

Sure, but that function doesn't use bufHdr, making the new phrasing just as
confusing as the old one.

Greetings,

Andres





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2026-04-19 19:00                                 ` Alexander Lakhin <exclusion@gmail.com>
  2026-04-20 01:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-04-20 06:11                                   ` Re: Typos in the code and README Daniil Davydov <3danissimo@gmail.com>
  1 sibling, 2 replies; 55+ messages in thread

From: Alexander Lakhin @ 2026-04-19 19:00 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; David Rowley <dgrowleyml@gmail.com>; +Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

Hello hackers,

Please look at another set of typos and inconsistencies introduced since
2026-01-01:
AttNumber -> AttrNumber

attytypids, attytypmods -> atttypids, atttypmods

AX handle  -> AH handle

big5_to_mic -> remove
(following 77645d44e)

bk_category -> bkcategory
(per postmaster/proctypelist.h)

BufferLockRelease -> BufferLockReleaseSub

build_index_scan -> build_index_scankeys

cacheoffset -> attcacheoff
(see index_getattr())

containg -> containing

Controlfile -> ControlFile

DataChecksumShmemRequest -> DataChecksumsShmemRequest

DataChecksumsLauncher -> DataChecksumsWorkerLauncherMain
(DataChecksumsWorkerLauncherMain() calls SetDataChecksumsOn(), which calls
EmitProcSignalBarrier())

Datachecksumsworker -> DataChecksumsWorker

dc_fake_temptable, dc_modify_db_result -> remove
(the implementation was removed in 07009121c)

determing -> determining

doublecheck -> double-check

Doublecheck -> Double-check

element_patterns -> path_pattern
(align with the implementation)

endTruncOff, endTruncMemb -> oldestMulti, oldestOffset
(align with the implementation)

expr_nulls[]  -> remove
(exprs_nulls[] was removed in
v2jsonb-0001-Add-support-for-exprs-in-pg_restore_extended.patch [1])

forPortionOfClause -> forPortionOf
(align with the implementation)

HeaptupleSatisfiesMVCC -> HeapTupleSatisfiesMVCC

hintbits -> hint bits

hostsfile -> hosts file

idenifier -> identifier

io_worker_launch_delay -> io_worker_launch_interval
(named io_worker_launch_delay in [2], but this name is absent in
v7-0001-aio-Adjust-I-O-worker-pool-size-automatically.patch attached
there)

load_from_disk_pending -> stashes_ready
(cf. "if (pg_atomic_unlocked_test_flag(&pgsa_state->stashes_ready))"
below)

LockManagerShmemSize -> remove the referencing sentence?
(following 9b5acad3f)

nonprivileged -> non-privileged

option_values -> option_value

oveflows -> overflows

path_pattern_lists -> path_elem_lists

paralell -> parallel

pg_buffercache_mark_dirt_relation -> pg_buffercache_mark_dirty_relation

pgpa_relation_identifier -> pgpa_identifier

pgstat_activity -> pg_stat_activity

pg_statistic.ext_data -> pg_statistic_ext_data

precalculated -> pre-calculated

PredicateLockShmemSize -> remove the referencing sentence?
(following 2e0943a85)

queryID -> Query ID

rel_dst -> cc_rel
(rel_dst existed in
v25-0004-Add-CONCURRENTLY-option-to-REPACK-command.patch [3], but then got
transformed into dest->rel in v26 [4] and then renamed to cc_rel)

relfrozen -> relfrozenxid
(as in other occurrences "relfrozenxid/relminmxid")

replorigin_session_origin -> replorigin_xact_state.origin

ResOwnerReleaseBufferPin -> ResOwnerReleaseBuffer
(see fcb9c977a)

RewriteGraphTable -> rewriteGraphTable

RTEkind -> RTE kind

SetHintBitExt -> SetHintBitsExt

signedess -> signedness

statsare -> stats are

SubPlanInfo -> SubPlanRTInfo

SubRTInfo -> SubPlanRTInfo

subsystemslist.h -> subsystemlist.h

swicthed -> switched

tablespacenames -> tablespace names

TABLE_UPDATE_WAIT -> remove the mention
("#define TABLE_UPDATE_WAIT" existed in
v46-0002-Add-CONCURRENTLY-option-to-REPACK-command.patch, but it was
removed in v47 [6].)

targetExpr -> targetRange
(see the code below)

testcluster -> test cluster

themself -> themselves

tkeys -> rids

truncation_block -> truncation_block_length

tupleTableSlot -> TupleTableSlot

VacAttrStatP -> VacAttrStatsP

XLOGShmemSize -> XLOGShmemRequest
(XLOGShmemRequest modifies wal_buffers)


[1] https://www.postgresql.org/message-id/CADkLM%3Ddu%2BOcctrsTk%2BhZryUGy%3D0OnPep-3LdGzut1nqF391%2BEg%...
[2] https://www.postgresql.org/message-id/CA%2BhUKGK%3DvELXFXNj2L%3DvTkof6s_EQzTjYXXrUVwOOW0rahEfVg%40ma...
[3] https://www.postgresql.org/message-id/202510301734.pj4uds3mqxx4%40alvherre.pgsql
[4] https://www.postgresql.org/message-id/116433.1764870207%40localhost
[5] https://www.postgresql.org/message-id/202603292157.tnqxaozfjlkh%40alvherre.pgsql
[6] https://www.postgresql.org/message-id/202603311523.iqhng5ljkzpq%40alvherre.pgsql

Best regards,
Alexander





^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-04-19 19:00                                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2026-04-20 01:00                                   ` Alexander Lakhin <exclusion@gmail.com>
  2026-04-21 04:23                                     ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  1 sibling, 1 reply; 55+ messages in thread

From: Alexander Lakhin @ 2026-04-20 01:00 UTC (permalink / raw)
  To: Michael Paquier <michael@paquier.xyz>; David Rowley <dgrowleyml@gmail.com>; +Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

19.04.2026 22:00, Alexander Lakhin wrote:
> Please look at another set of typos and inconsistencies introduced since
> 2026-01-01:

Sorry, I forgot to attach the patch for your convenience.

Best regards,
Alexander

Attachments:

fix-typos-inconsistencies-2026-04.patch (text/x-patch, 37.7K) download diff --git a/contrib/pg_overexplain/pg_overexplain.c b/contrib/pg_overexplain/pg_overexplain.c index fb277e02308..a93a4dcfed6 100644 --- a/contrib/pg_overexplain/pg_overexplain.c +++ b/contrib/pg_overexplain/pg_overexplain.c @@ -459,7 +459,7 @@ overexplain_range_table(PlannedStmt *plannedstmt, ExplainState *es) char *relkind; SubPlanRTInfo *next_rtinfo; - /* Advance to next SubRTInfo, if it's time. */ + /* Advance to next SubPlanRTInfo, if it's time. */ if (lc_subrtinfo != NULL) { next_rtinfo = lfirst(lc_subrtinfo); @@ -512,8 +512,8 @@ overexplain_range_table(PlannedStmt *plannedstmt, ExplainState *es) /* * We should not see RTE of this kind here since property * graph RTE gets converted to subquery RTE in - * RewriteGraphTable(). In case we decide not to do the - * conversion and leave RTEkind unchanged in future, print + * rewriteGraphTable(). In case we decide not to do the + * conversion and leave RTE kind unchanged in future, print * correct name of RTE kind. */ kind = "graph_table"; diff --git a/contrib/pg_plan_advice/pgpa_ast.c b/contrib/pg_plan_advice/pgpa_ast.c index 3c340c6ae7a..01db8d24cd0 100644 --- a/contrib/pg_plan_advice/pgpa_ast.c +++ b/contrib/pg_plan_advice/pgpa_ast.c @@ -321,7 +321,7 @@ pgpa_identifiers_match_target(int nrids, pgpa_identifier *rids, * Returns true if every target or sub-target is matched by at least one * identifier, and otherwise false. * - * Also sets rids_used[i] = true for each idenifier that matches at least one + * Also sets rids_used[i] = true for each identifier that matches at least one * target. */ static bool diff --git a/contrib/pg_plan_advice/pgpa_ast.h b/contrib/pg_plan_advice/pgpa_ast.h index a89f1251929..4bd6ffa5e3a 100644 --- a/contrib/pg_plan_advice/pgpa_ast.h +++ b/contrib/pg_plan_advice/pgpa_ast.h @@ -116,7 +116,7 @@ typedef struct pgpa_advice_item } pgpa_advice_item; /* - * Result of comparing an array of pgpa_relation_identifier objects to a + * Result of comparing an array of pgpa_identifier objects to a * pgpa_advice_target. * * PGPA_ITM_EQUAL means all targets are matched by some identifier, and diff --git a/contrib/pg_plan_advice/pgpa_identifier.c b/contrib/pg_plan_advice/pgpa_identifier.c index 0cfc4aa4f7e..9d620c70bb9 100644 --- a/contrib/pg_plan_advice/pgpa_identifier.c +++ b/contrib/pg_plan_advice/pgpa_identifier.c @@ -211,7 +211,7 @@ pgpa_compute_identifier_by_rti(PlannerInfo *root, Index rti, * RTE_JOIN entries are excluded because they cannot be mentioned by plan * advice. * - * The caller is responsible for making sure that the tkeys array is large + * The caller is responsible for making sure that the rids array is large * enough to store the results. * * The return value is the number of identifiers computed. diff --git a/contrib/pg_plan_advice/pgpa_join.c b/contrib/pg_plan_advice/pgpa_join.c index 38e7b91ed7e..067321081e7 100644 --- a/contrib/pg_plan_advice/pgpa_join.c +++ b/contrib/pg_plan_advice/pgpa_join.c @@ -93,7 +93,7 @@ pgpa_create_join_unroller(void) * * pgpa_plan_walker creates a "top level" join unroller object when it * encounters a join in a portion of the plan tree in which no join unroller - * is already active. From there, this function is responsible for determing + * is already active. From there, this function is responsible for determining * to what portion of the plan tree that join unroller applies, and for * creating any subordinate join unroller objects that are needed as a result * of non-outer-deep join trees. We do this by returning the join unroller diff --git a/contrib/pg_plan_advice/pgpa_planner.c b/contrib/pg_plan_advice/pgpa_planner.c index 72ef3230abc..4b44a98fcbc 100644 --- a/contrib/pg_plan_advice/pgpa_planner.c +++ b/contrib/pg_plan_advice/pgpa_planner.c @@ -1648,13 +1648,14 @@ pgpa_planner_apply_scan_advice(RelOptInfo *rel, /* * Currently, PGS_CONSIDER_INDEXONLY can suppress Bitmap Heap * Scans, so don't clear it when such a scan is requested. This - * happens because build_index_scan() thinks that the possibility - * of an index-only scan is a sufficient reason to consider using - * an otherwise-useless index, and get_index_paths() thinks that - * the same paths that are useful for index or index-only scans - * should also be considered for bitmap scans. Perhaps that logic - * should be tightened up, but until then we need to include - * PGS_CONSIDER_INDEXONLY in my_scan_type here. + * happens because build_index_scankeys() thinks that the + * possibility of an index-only scan is a sufficient reason to + * consider using an otherwise-useless index, and + * get_index_paths() thinks that the same paths that are useful + * for index or index-only scans should also be considered for + * bitmap scans. Perhaps that logic should be tightened up, but + * until then we need to include PGS_CONSIDER_INDEXONLY in + * my_scan_type here. */ my_scan_type = PGS_BITMAPSCAN | PGS_CONSIDER_INDEXONLY; } @@ -2083,7 +2084,7 @@ pgpa_compute_rt_offsets(pgpa_planner_state *pps, PlannedStmt *pstmt) /* * It's not guaranteed that every plan name we saw during planning has - * a SubPlanInfo, but any that do not certainly don't appear in the + * a SubPlanRTInfo, but any that do not certainly don't appear in the * final range table. */ foreach_node(SubPlanRTInfo, rtinfo, pstmt->subrtinfos) diff --git a/contrib/pg_stash_advice/stashfuncs.c b/contrib/pg_stash_advice/stashfuncs.c index 77f8e19e867..d7aa9f2223f 100644 --- a/contrib/pg_stash_advice/stashfuncs.c +++ b/contrib/pg_stash_advice/stashfuncs.c @@ -286,7 +286,7 @@ pg_set_stashed_advice(PG_FUNCTION_ARGS) /* * Get and check query ID. * - * queryID 0 means no query ID was computed, so reject that. + * Query ID 0 means no query ID was computed, so reject that. */ queryId = PG_GETARG_INT64(1); if (queryId == 0) diff --git a/contrib/pg_stash_advice/stashpersist.c b/contrib/pg_stash_advice/stashpersist.c index 07a4da65b7e..00a0a74f04d 100644 --- a/contrib/pg_stash_advice/stashpersist.c +++ b/contrib/pg_stash_advice/stashpersist.c @@ -85,7 +85,7 @@ static void pgsa_write_to_disk(void); /* * Background worker entry point for pg_stash_advice persistence. * - * On startup, if load_from_disk_pending is set, we load previously saved + * On startup, if stashes_ready is set, we load previously saved * stash data from disk. Then we enter a loop, periodically checking whether * any changes have been made (via the change_count atomic counter) and * writing them to disk. On shutdown, we perform a final write. diff --git a/contrib/pg_trgm/trgm_op.c b/contrib/pg_trgm/trgm_op.c index 0aca9b5826f..3fd087852e7 100644 --- a/contrib/pg_trgm/trgm_op.c +++ b/contrib/pg_trgm/trgm_op.c @@ -242,7 +242,7 @@ CMPTRGM_CHOOSE(const void *a, const void *b) #define ST_DECLARE #include "lib/sort_template.h" -/* Sort an array of trigrams, handling signedess correctly */ +/* Sort an array of trigrams, handling signedness correctly */ static void trigram_qsort(trgm *array, size_t n) { diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c index 0f20f38c83e..c42cb690c7b 100644 --- a/contrib/postgres_fdw/postgres_fdw.c +++ b/contrib/postgres_fdw/postgres_fdw.c @@ -5798,7 +5798,7 @@ fetch_remote_statistics(Relation relation, remote_relname, column_list.data); - /* If any attribute statsare missing, fallback to sampling. */ + /* If any attribute stats are missing, fallback to sampling. */ if (!match_attrmap(attstats, local_schemaname, local_relname, remote_schemaname, remote_relname, diff --git a/doc/src/sgml/pgstashadvice.sgml b/doc/src/sgml/pgstashadvice.sgml index c9b1e078382..7813d63d91e 100644 --- a/doc/src/sgml/pgstashadvice.sgml +++ b/doc/src/sgml/pgstashadvice.sgml @@ -84,7 +84,7 @@ <literal>pg_stash_advice.stash_name</literal> for their session, and this may reveal the contents of any advice stash with that name. Users should assume that information embedded in stashed advice strings may become visible - to nonprivileged users. + to non-privileged users. </para> <sect2 id="pgstashadvice-functions"> diff --git a/doc/src/sgml/ref/alter_property_graph.sgml b/doc/src/sgml/ref/alter_property_graph.sgml index 19352c06305..f517f2b2d7a 100644 --- a/doc/src/sgml/ref/alter_property_graph.sgml +++ b/doc/src/sgml/ref/alter_property_graph.sgml @@ -78,7 +78,7 @@ ALTER PROPERTY GRAPH [ IF EXISTS ] <replaceable class="parameter">name</replacea <para> This form removes vertex or edge tables from the property graph. (Only the association of the tables with the graph is removed. The tables - themself are not dropped.) + themselves are not dropped.) </para> </listitem> </varlistentry> diff --git a/doc/src/sgml/release-19.sgml b/doc/src/sgml/release-19.sgml index 6a8dfa0526f..c1bf18abfd3 100644 --- a/doc/src/sgml/release-19.sgml +++ b/doc/src/sgml/release-19.sgml @@ -3231,7 +3231,7 @@ Add functions to pg_buffercache to mark buffers as dirty (Nazir Bilal Yavuz) </para> <para> -The functions are pg_buffercache_mark_dirty(), pg_buffercache_mark_dirt_relation(), and pg_buffercache_mark_dirty_all(). +The functions are pg_buffercache_mark_dirty(), pg_buffercache_mark_dirty_relation(), and pg_buffercache_mark_dirty_all(). </para> </listitem> diff --git a/src/backend/access/common/indextuple.c b/src/backend/access/common/indextuple.c index a2db55e9b73..60bba0a2145 100644 --- a/src/backend/access/common/indextuple.c +++ b/src/backend/access/common/indextuple.c @@ -222,7 +222,7 @@ index_form_tuple_context(TupleDesc tupleDescriptor, * nocache_index_getattr * * This gets called from index_getattr() macro, and only in cases - * where we can't use cacheoffset and the value is not null. + * where we can't use attcacheoff and the value is not null. * ---------------- */ Datum diff --git a/src/backend/access/heap/heapam_visibility.c b/src/backend/access/heap/heapam_visibility.c index 3a6a1e5a084..361b76e5065 100644 --- a/src/backend/access/heap/heapam_visibility.c +++ b/src/backend/access/heap/heapam_visibility.c @@ -192,7 +192,7 @@ SetHintBitsExt(HeapTupleHeader tuple, Buffer buffer, } /* - * Simple wrapper around SetHintBitExt(), use when operating on a single + * Simple wrapper around SetHintBitsExt(), use when operating on a single * tuple. */ static inline void @@ -1671,7 +1671,7 @@ HeapTupleSatisfiesHistoricMVCC(HeapTuple htup, Snapshot snapshot, } /* - * Perform HeaptupleSatisfiesMVCC() on each passed in tuple. This is more + * Perform HeapTupleSatisfiesMVCC() on each passed in tuple. This is more * efficient than doing HeapTupleSatisfiesMVCC() one-by-one. * * To be checked tuples are passed via BatchMVCCState->tuples. Each tuple's diff --git a/src/backend/access/transam/multixact.c b/src/backend/access/transam/multixact.c index cb78ba0842d..10cbc0d76bd 100644 --- a/src/backend/access/transam/multixact.c +++ b/src/backend/access/transam/multixact.c @@ -341,8 +341,8 @@ static void ExtendMultiXactMember(MultiXactOffset offset, int nmembers); static void SetOldestOffset(void); static bool find_multixact_start(MultiXactId multi, MultiXactOffset *result); static void WriteMTruncateXlogRec(Oid oldestMultiDB, - MultiXactId endTruncOff, - MultiXactOffset endTruncMemb); + MultiXactId oldestMulti, + MultiXactOffset oldestOffset); /* diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index f85b5286086..e39af79c03b 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -668,7 +668,7 @@ static TimeLineID LocalMinRecoveryPointTLI; static bool updateMinRecoveryPoint = true; /* - * Local state for Controlfile data_checksum_version. After initialization + * Local state for ControlFile data_checksum_version. After initialization * this is only updated when absorbing a procsignal barrier during interrupt * processing. The reason for keeping a copy in backend-private memory is to * avoid locking for interrogating the data checksum state. Possible values @@ -5045,7 +5045,7 @@ check_wal_buffers(int *newval, void **extra, GucSource source) { /* * If we haven't yet changed the boot_val default of -1, just let it - * be. We'll fix it when XLOGShmemSize is called. + * be. We'll fix it when XLOGShmemRequest is called. */ if (XLOGbuffers == -1) return true; diff --git a/src/backend/commands/explain_state.c b/src/backend/commands/explain_state.c index 0e07a63fca6..a0ee0a664be 100644 --- a/src/backend/commands/explain_state.c +++ b/src/backend/commands/explain_state.c @@ -435,7 +435,7 @@ GUCCheckExplainExtensionOption(const char *option_name, * for an EXPLAIN extension option, the caller is entitled to assume that * a suitably constructed DefElem passed to the main option handler will * not cause an error. To construct this DefElem, the caller should set - * the DefElem's defname to option_name. If option_values is NULL, arg + * the DefElem's defname to option_name. If option_value is NULL, arg * should be NULL. Otherwise, arg should be of the type given by * option_type, with option_value as the associated value. The only option * types that should be passed are T_String, T_Float, and T_Integer; in diff --git a/src/backend/commands/repack.c b/src/backend/commands/repack.c index 67364cc60e3..4a9dc7b164d 100644 --- a/src/backend/commands/repack.c +++ b/src/backend/commands/repack.c @@ -104,7 +104,7 @@ typedef struct ChangeContext /* The relation the changes are applied to. */ Relation cc_rel; - /* Needed to update indexes of rel_dst. */ + /* Needed to update indexes of cc_rel. */ ResultRelInfo *cc_rri; EState *cc_estate; diff --git a/src/backend/commands/vacuumparallel.c b/src/backend/commands/vacuumparallel.c index 979c2be4abd..41cefcfde54 100644 --- a/src/backend/commands/vacuumparallel.c +++ b/src/backend/commands/vacuumparallel.c @@ -545,7 +545,7 @@ parallel_vacuum_end(ParallelVacuumState *pvs, IndexBulkDeleteResult **istats) /* * DSM detach callback. This is invoked when an autovacuum worker detaches * from the DSM segment holding PVShared. It ensures to reset the local pointer - * to the shared state even if paralell vacuum raises an error and doesn't + * to the shared state even if parallel vacuum raises an error and doesn't * call parallel_vacuum_end(). */ static void diff --git a/src/backend/executor/execTuples.c b/src/backend/executor/execTuples.c index f08982a43cc..9810a62e6ce 100644 --- a/src/backend/executor/execTuples.c +++ b/src/backend/executor/execTuples.c @@ -1403,7 +1403,7 @@ MakeTupleTableSlot(TupleDesc tupleDesc, * Precalculate the maximum guaranteed attribute that has to exist in * every tuple which gets deformed into this slot. When the * TTS_FLAG_OBEYS_NOT_NULL_CONSTRAINTS flag is enabled, we simply take - * the precalculated value from the tupleDesc, otherwise the + * the pre-calculated value from the tupleDesc, otherwise the * optimization is disabled, and we set the value to 0. */ if ((flags & TTS_FLAG_OBEYS_NOT_NULL_CONSTRAINTS) != 0) diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c index ef2a6bc6e9d..b013f8356ee 100644 --- a/src/backend/executor/nodeModifyTable.c +++ b/src/backend/executor/nodeModifyTable.c @@ -1430,7 +1430,7 @@ ExecForPortionOfLeftovers(ModifyTableContext *context, /* * If we don't have a ForPortionOfState yet, we must be a partition * child being hit for the first time. Make a copy from the root, with - * our own tupleTableSlot. We do this lazily so that we don't pay the + * our own TupleTableSlot. We do this lazily so that we don't pay the * price of unused partitions. */ ForPortionOfState *leafState = makeNode(ForPortionOfState); diff --git a/src/backend/libpq/be-secure-openssl.c b/src/backend/libpq/be-secure-openssl.c index a3e222f3a3d..f64b2787f66 100644 --- a/src/backend/libpq/be-secure-openssl.c +++ b/src/backend/libpq/be-secure-openssl.c @@ -200,7 +200,7 @@ be_tls_init(bool isServerStart) * * The reason for not doing everything in this if-else conditional is that * we want to use the same processing of postgresql.conf for when ssl_sni - * is off as well as when it's on but the hostsfile is missing etc. Thus + * is off as well as when it's on but the hosts file is missing etc. Thus * we set res to the state and continue with a new conditional instead of * duplicating logic and risk it diverging over time. */ @@ -208,7 +208,7 @@ be_tls_init(bool isServerStart) { /* * The GUC check hook should have already blocked this but to be on - * the safe side we doublecheck here. + * the safe side we double-check here. */ #ifndef HAVE_SSL_CTX_SET_CLIENT_HELLO_CB ereport(isServerStart ? FATAL : LOG, diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index 84deed9aaa6..cb4e5019c2f 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -80,7 +80,7 @@ static OnConflictExpr *transformOnConflictClause(ParseState *pstate, OnConflictClause *onConflictClause); static ForPortionOfExpr *transformForPortionOfClause(ParseState *pstate, int rtindex, - const ForPortionOfClause *forPortionOfClause, + const ForPortionOfClause *forPortionOf, bool isUpdate); static int count_rowexpr_columns(ParseState *pstate, Node *expr); static Query *transformSelectStmt(ParseState *pstate, SelectStmt *stmt, diff --git a/src/backend/parser/parse_graphtable.c b/src/backend/parser/parse_graphtable.c index 30ddce5aa9f..f889c8df4e3 100644 --- a/src/backend/parser/parse_graphtable.c +++ b/src/backend/parser/parse_graphtable.c @@ -157,7 +157,7 @@ transformGraphTablePropertyRef(ParseState *pstate, ColumnRef *cref) * A label expression is parsed as either a ColumnRef with a single field or a * label expression like label disjunction. The single field in the ColumnRef is * treated as a label name and transformed to a GraphLabelRef node. The label - * expression is recursively transformed into an expression tree containg + * expression is recursively transformed into an expression tree containing * GraphLabelRef nodes corresponding to the names of the labels appearing in the * expression. If any label name cannot be resolved to a label in the property * graph, an error is raised. diff --git a/src/backend/postmaster/autovacuum.c b/src/backend/postmaster/autovacuum.c index 680db664be4..a5a8db2ff88 100644 --- a/src/backend/postmaster/autovacuum.c +++ b/src/backend/postmaster/autovacuum.c @@ -3047,7 +3047,7 @@ table_recheck_autovac(Oid relid, HTAB *table_toast_map, * * One exception to the previous paragraph is for tables nearing wraparound, * i.e., those that have surpassed the effective failsafe ages. In that case, - * the relfrozen/relminmxid-based score is scaled aggressively so that the + * the relfrozenxid/relminmxid-based score is scaled aggressively so that the * table has a decent chance of sorting to the front of the list. * * To adjust how strongly each component contributes to the score, the diff --git a/src/backend/postmaster/datachecksum_state.c b/src/backend/postmaster/datachecksum_state.c index 18797a8ee3d..3a060cbcceb 100644 --- a/src/backend/postmaster/datachecksum_state.c +++ b/src/backend/postmaster/datachecksum_state.c @@ -99,12 +99,12 @@ * state will also be set to "off". * * Backends transition Bd -> Bi via a procsignalbarrier which is emitted by the - * DataChecksumsLauncher. When all backends have acknowledged the barrier then - * Bd will be empty and the next phase can begin: calculating and writing data - * checksums with DataChecksumsWorkers. When the DataChecksumsWorker processes - * have finished writing checksums on all pages, data checksums are enabled - * cluster-wide via another procsignalbarrier. There are four sets of backends - * where Bd shall be an empty set: + * DataChecksumsWorkerLauncherMain. When all backends have acknowledged the + * barrier then Bd will be empty and the next phase can begin: calculating and + * writing data checksums with DataChecksumsWorkers. When the + * DataChecksumsWorker processes have finished writing checksums on all pages, + * data checksums are enabled cluster-wide via another procsignalbarrier. + * There are four sets of backends where Bd shall be an empty set: * * Bg: Backend updating the global state and emitting the procsignalbarrier * Bd: Backends in "off" state @@ -634,7 +634,7 @@ ProcessSingleRelationFork(Relation reln, ForkNumber forkNum, BufferAccessStrateg relns = get_namespace_name(RelationGetNamespace(reln)); - /* Report the current relation to pgstat_activity */ + /* Report the current relation to pg_stat_activity */ snprintf(activity, sizeof(activity) - 1, "processing: %s.%s (%s, %u blocks)", (relns ? relns : ""), RelationGetRelationName(reln), forkNames[forkNum], numblocks); pgstat_report_activity(STATE_RUNNING, activity); @@ -659,7 +659,7 @@ ProcessSingleRelationFork(Relation reln, ForkNumber forkNum, BufferAccessStrateg * re-write the page to WAL even if the checksum hasn't changed, * because if there is a replica it might have a slightly different * version of the page with an invalid checksum, caused by unlogged - * changes (e.g. hintbits) on the primary happening while checksums + * changes (e.g. hint bits) on the primary happening while checksums * were off. This can happen if there was a valid checksum on the page * at one point in the past, so only when checksums are first on, then * off, and then turned on again. TODO: investigate if this could be @@ -1262,7 +1262,7 @@ ProcessAllDatabases(void) } /* - * DataChecksumShmemRequest + * DataChecksumsShmemRequest * Request datachecksumsworker-related shared memory */ static void diff --git a/src/backend/replication/logical/origin.c b/src/backend/replication/logical/origin.c index 372d77c475e..c9dfb094c2b 100644 --- a/src/backend/replication/logical/origin.c +++ b/src/backend/replication/logical/origin.c @@ -1371,7 +1371,7 @@ replorigin_session_get_progress(bool flush) /* * Clear the per-transaction replication origin state. * - * replorigin_session_origin is also cleared if clear_origin is set. + * replorigin_xact_state.origin is also cleared if clear_origin is set. */ void replorigin_xact_clear(bool clear_origin) diff --git a/src/backend/rewrite/rewriteGraphTable.c b/src/backend/rewrite/rewriteGraphTable.c index 2c3199d3230..7b64818e369 100644 --- a/src/backend/rewrite/rewriteGraphTable.c +++ b/src/backend/rewrite/rewriteGraphTable.c @@ -91,10 +91,10 @@ struct path_element static Node *replace_property_refs(Oid propgraphid, Node *node, const List *mappings); static List *build_edge_vertex_link_quals(HeapTuple edgetup, int edgerti, int refrti, Oid refid, AttrNumber catalog_key_attnum, AttrNumber catalog_ref_attnum, AttrNumber catalog_eqop_attnum); -static List *generate_queries_for_path_pattern(RangeTblEntry *rte, List *element_patterns); +static List *generate_queries_for_path_pattern(RangeTblEntry *rte, List *path_pattern); static Query *generate_query_for_graph_path(RangeTblEntry *rte, List *path); static Node *generate_setop_from_pathqueries(List *pathqueries, List **rtable, List **targetlist); -static List *generate_queries_for_path_pattern_recurse(RangeTblEntry *rte, List *pathqueries, List *cur_path, List *path_pattern_lists, int elempos); +static List *generate_queries_for_path_pattern_recurse(RangeTblEntry *rte, List *pathqueries, List *cur_path, List *path_elem_lists, int elempos); static Query *generate_query_for_empty_path_pattern(RangeTblEntry *rte); static Query *generate_union_from_pathqueries(List **pathqueries); static List *get_path_elements_for_path_factor(Oid propgraphid, struct path_factor *pf); diff --git a/src/backend/statistics/extended_stats_funcs.c b/src/backend/statistics/extended_stats_funcs.c index 9279904b465..9108187477c 100644 --- a/src/backend/statistics/extended_stats_funcs.c +++ b/src/backend/statistics/extended_stats_funcs.c @@ -571,7 +571,7 @@ extended_statistics_update(FunctionCallInfo fcinfo) /* * Either of these statistic types requires that we supply a semi-filled - * VacAttrStatP array. + * VacAttrStatsP array. * * It is not possible to use the existing lookup_var_attr_stats() and * examine_attribute() because these functions will skip attributes where @@ -586,7 +586,7 @@ extended_statistics_update(FunctionCallInfo fcinfo) /* * The leading stxkeys are attribute numbers up through numattnums. - * These keys must be in ascending AttNumber order, but we do not rely + * These keys must be in ascending AttrNumber order, but we do not rely * on that. */ for (int i = 0; i < numattnums; i++) @@ -724,7 +724,7 @@ extended_statistics_update(FunctionCallInfo fcinfo) /* * Generate the expressions array. * - * The attytypids, attytypmods, and atttypcolls arrays have all the + * The atttypids, atttypmods, and atttypcolls arrays have all the * regular attributes listed first, so we can pass those arrays with a * start point after the last regular attribute. There are numexprs * elements remaining. @@ -1091,7 +1091,7 @@ array_in_safe(FmgrInfo *array_in, const char *s, Oid typid, int32 typmod, * still return a legit tuple datum. * * Set pg_statistic_ok to true if all of the values found in the container - * were imported without issue. pg_statistic_ok is swicthed to "true" once + * were imported without issue. pg_statistic_ok is switched to "true" once * the full pg_statistic tuple has been built and validated. */ static Datum @@ -1307,10 +1307,6 @@ import_pg_statistic(Relation pgsd, JsonbContainer *cont, * if they aren't then we need to reject that stakind completely. * Currently we go a step further and reject the expression array * completely. - * - * Once it is established that the pairs are in NULL/NOT-NULL alignment, - * we can test either expr_nulls[] value to see if the stakind has - * value(s) that we can set or not. */ if (found[MOST_COMMON_VALS_ELEM]) diff --git a/src/backend/storage/aio/method_worker.c b/src/backend/storage/aio/method_worker.c index 061a93d90d4..63e34d66690 100644 --- a/src/backend/storage/aio/method_worker.c +++ b/src/backend/storage/aio/method_worker.c @@ -814,7 +814,7 @@ IoWorkerMain(const void *startup_data, size_t startup_data_len) * it. Crossing the current worker count is a useful signal * because it's clearly too deep to avoid queuing latency already, * but still leaves a small window of opportunity to improve the - * situation before the queue oveflows. + * situation before the queue overflows. * * 2. The worker pool is keeping up, no latency is being * introduced and an extra worker would be a waste of resources. @@ -830,10 +830,10 @@ IoWorkerMain(const void *startup_data, size_t startup_data_len) * * On its own, this is an extremely crude signal. When combined * with the wakeup propagation test that precedes it (but on its - * own tends to overshoot) and io_worker_launch_delay, the result - * is that we gradually test each pool size until we find one that - * doesn't trigger further expansion, and then hold it for at - * least io_worker_idle_timeout. + * own tends to overshoot) and io_worker_launch_interval, the + * result is that we gradually test each pool size until we find + * one that doesn't trigger further expansion, and then hold it + * for at least io_worker_idle_timeout. * * XXX Perhaps ideas from queueing theory or control theory could * do a better job of this. diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index 3cc0b0bdd92..32f501bbd21 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -5844,7 +5844,7 @@ MarkBufferDirtyHint(Buffer buffer, bool buffer_std) * Used to clean up after errors. * * Currently, we can expect that resource owner cleanup, via - * ResOwnerReleaseBufferPin(), took care of releasing buffer content locks per + * ResOwnerReleaseBuffer(), took care of releasing buffer content locks per * se; the only thing we need to deal with here is clearing any PIN_COUNT * request that was in progress. */ @@ -5993,7 +5993,7 @@ BufferLockAcquire(Buffer buffer, BufferDesc *buf_hdr, BufferLockMode mode) pgstat_report_wait_end(); - /* Retrying, allow BufferLockRelease to release waiters again. */ + /* Retrying, allow BufferLockReleaseSub to release waiters again. */ pg_atomic_fetch_and_u64(&buf_hdr->state, ~BM_LOCK_WAKE_IN_PROGRESS); } diff --git a/src/backend/storage/ipc/ipci.c b/src/backend/storage/ipc/ipci.c index bf6b81e621b..e149a738c8d 100644 --- a/src/backend/storage/ipc/ipci.c +++ b/src/backend/storage/ipc/ipci.c @@ -169,7 +169,7 @@ RegisterBuiltinShmemCallbacks(void) { /* * Call RegisterShmemCallbacks(...) on each subsystem listed in - * subsystemslist.h + * subsystemlist.h */ #define PG_SHMEM_SUBSYSTEM(subsystem_callbacks) \ RegisterShmemCallbacks(&(subsystem_callbacks)); diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index c221fe96889..8d246ed5a4e 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -453,8 +453,7 @@ LockManagerShmemRequest(void *arg) int64 max_table_size; /* - * Compute sizes for lock hashtables. Note that these calculations must - * agree with LockManagerShmemSize! + * Compute sizes for lock hashtables. */ max_table_size = NLOCKENTS(); diff --git a/src/backend/storage/lmgr/predicate.c b/src/backend/storage/lmgr/predicate.c index 899a4ef06e4..0ae85b7d5b4 100644 --- a/src/backend/storage/lmgr/predicate.c +++ b/src/backend/storage/lmgr/predicate.c @@ -1156,8 +1156,7 @@ PredicateLockShmemRequest(void *arg) ); /* - * Compute size for serializable transaction hashtable. Note these - * calculations must agree with PredicateLockShmemSize! + * Compute size for serializable transaction hashtable. * * Assume an average of 10 predicate locking transactions per backend. * This allows aggressive cleanup while detail is present before data must diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index 090e8cc28c1..78587d223cb 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -13352,7 +13352,7 @@ get_for_portion_of(ForPortionOfExpr *forPortionOf, deparse_context *context) /* * Try to write it as FROM ... TO ... if we received it that way, - * otherwise (targetExpr). + * otherwise (targetRange). */ if (forPortionOf->targetFrom && forPortionOf->targetTo) { diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index ad960336e8d..1b8a73f589a 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -2353,7 +2353,7 @@ DebugFileOpen(void) * GUC check_hook for log_min_messages * * This value is parsed as a comma-separated list of zero or more TYPE:LEVEL - * elements. For each element, TYPE corresponds to a bk_category value (see + * elements. For each element, TYPE corresponds to a bkcategory value (see * postmaster/proctypelist.h); LEVEL is one of server_message_level_options. * * In addition, there must be a single LEVEL element (with no TYPE part) diff --git a/src/bin/pg_combinebackup/t/011_ib_truncation.pl b/src/bin/pg_combinebackup/t/011_ib_truncation.pl index c5e0124c04d..e1ce4521558 100644 --- a/src/bin/pg_combinebackup/t/011_ib_truncation.pl +++ b/src/bin/pg_combinebackup/t/011_ib_truncation.pl @@ -102,7 +102,8 @@ is($vm_limits, '1', 'WAL summary has correct VM fork truncation limit'); # Combine full and incremental backups. Before the fix, this failed because -# the INCREMENTAL file header contained an incorrect truncation_block value. +# the INCREMENTAL file header contained an incorrect truncation_block_length +# value. my $restored = PostgreSQL::Test::Cluster->new('node2'); $restored->init_from_backup($primary, 'incr', combine_with_prior => ['full']); $restored->start(); diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 1ca03d6b278..d56dcc701ce 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -18861,7 +18861,7 @@ dumpStatisticsExtStats(Archive *fout, const StatsExtInfo *statsextinfo) { /* * There is no ordering column in pg_stats_ext_exprs. However, we - * can rely on the unnesting of pg_statistic.ext_data.stxdexpr to + * can rely on the unnesting of pg_statistic_ext_data.stxdexpr to * maintain the desired order of expression elements. */ appendPQExpBufferStr(pq, diff --git a/src/bin/pg_dump/pg_restore.c b/src/bin/pg_dump/pg_restore.c index f016b336308..95f4ac110b9 100644 --- a/src/bin/pg_dump/pg_restore.c +++ b/src/bin/pg_dump/pg_restore.c @@ -704,7 +704,7 @@ restore_one_database(const char *inputFileSpec, RestoreOptions *opts, * We don't have a connection yet but that doesn't matter. The connection * is initialized to NULL and if we terminate through exit_nicely() while * it's still NULL, the cleanup function will just be a no-op. If we are - * restoring multiple databases, then only update AX handle for cleanup as + * restoring multiple databases, then only update AH handle for cleanup as * the previous entry was already in the array and we had closed previous * connection, so we can use the same array slot. */ diff --git a/src/bin/pg_upgrade/check.c b/src/bin/pg_upgrade/check.c index 06134cf5d2e..5a7afe62eab 100644 --- a/src/bin/pg_upgrade/check.c +++ b/src/bin/pg_upgrade/check.c @@ -2601,7 +2601,7 @@ check_old_cluster_global_names(ClusterInfo *cluster) conn_template1 = connectToServer(cluster, "template1"); /* - * Get database, user/role and tablespacenames from cluster. Can't use + * Get database, user/role and tablespace names from cluster. Can't use * pg_authid because only superusers can view it. */ res = executeQueryOrDie(conn_template1, diff --git a/src/common/wchar.c b/src/common/wchar.c index a44ee73accf..4c77e3e1dc8 100644 --- a/src/common/wchar.c +++ b/src/common/wchar.c @@ -26,9 +26,9 @@ * this pair specifically. Byte pair range constraints, in encoding * originator documentation, always excluded this pair. No core conversion * could translate it. However, longstanding verifychar implementations - * accepted any non-NUL byte. big5_to_euc_tw and big5_to_mic even translate - * pairs not valid per encoding originator documentation. To avoid tightening - * core or non-core conversions in a security patch, we sought this one pair. + * accepted any non-NUL byte. big5_to_euc_tw even translates pairs not + * valid per encoding originator documentation. To avoid tightening core + * or non-core conversions in a security patch, we sought this one pair. * * PQescapeString() historically used spaces for BYTE1; many other values * could suffice for BYTE1. diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h index c13f05d39db..f2c36696bca 100644 --- a/src/include/access/tableam.h +++ b/src/include/access/tableam.h @@ -1570,8 +1570,6 @@ table_tuple_delete(Relation rel, ItemPointer tid, CommandId cid, * crosscheck - if not InvalidSnapshot, also check old tuple against this * options - These allow the caller to specify options that may change the * behavior of the AM. The AM will ignore options that it does not support. - * TABLE_UPDATE_WAIT -- set if should wait for any conflicting update to - * commit/abort * TABLE_UPDATE_NO_LOGICAL -- force-disables the emitting of logical * decoding information for the tuple. * diff --git a/src/include/postmaster/datachecksum_state.h b/src/include/postmaster/datachecksum_state.h index 05625539604..7acb3b43ab8 100644 --- a/src/include/postmaster/datachecksum_state.h +++ b/src/include/postmaster/datachecksum_state.h @@ -17,7 +17,7 @@ #include "storage/procsignal.h" -/* Possible operations the Datachecksumsworker can perform */ +/* Possible operations the DataChecksumsWorker can perform */ typedef enum DataChecksumsWorkerOperation { ENABLE_DATACHECKSUMS, diff --git a/src/test/modules/test_checksums/t/003_standby_restarts.pl b/src/test/modules/test_checksums/t/003_standby_restarts.pl index 7ad11417ca6..11e15c9d734 100644 --- a/src/test/modules/test_checksums/t/003_standby_restarts.pl +++ b/src/test/modules/test_checksums/t/003_standby_restarts.pl @@ -110,7 +110,7 @@ $node_primary->wait_for_catchup($node_standby, 'replay'); # Ensure that the primary and standby has switched to off wait_for_checksum_state($node_primary, 'off'); wait_for_checksum_state($node_standby, 'off'); -# Doublecheck reading data without errors +# Double-check reading data without errors $result = $node_primary->safe_psql('postgres', "SELECT count(a) FROM t WHERE a > 1"); is($result, "19998", 'ensure we can safely read all data without checksums'); diff --git a/src/test/modules/test_checksums/t/005_injection.pl b/src/test/modules/test_checksums/t/005_injection.pl index a37a24dbbad..7240b93bdd1 100644 --- a/src/test/modules/test_checksums/t/005_injection.pl +++ b/src/test/modules/test_checksums/t/005_injection.pl @@ -25,7 +25,7 @@ if ($ENV{enable_injection_points} ne 'yes') # Test cluster setup # -# Initiate testcluster +# Initiate test cluster my $node = PostgreSQL::Test::Cluster->new('injection_node'); $node->init(no_data_checksums => 1); $node->start; diff --git a/src/test/modules/test_checksums/test_checksums.c b/src/test/modules/test_checksums/test_checksums.c index c2eabc2821c..621cf788dad 100644 --- a/src/test/modules/test_checksums/test_checksums.c +++ b/src/test/modules/test_checksums/test_checksums.c @@ -22,8 +22,6 @@ PG_MODULE_MAGIC; extern PGDLLEXPORT void dc_delay_barrier(const char *name, const void *private_data, void *arg); -extern PGDLLEXPORT void dc_modify_db_result(const char *name, const void *private_data, void *arg); -extern PGDLLEXPORT void dc_fake_temptable(const char *name, const void *private_data, void *arg); /* * Test for delaying emission of procsignalbarriers.
^ permalink raw reply [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-04-19 19:00                                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-04-20 01:00                                   ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2026-04-21 04:23                                     ` Michael Paquier <michael@paquier.xyz>
  0 siblings, 0 replies; 55+ messages in thread

From: Michael Paquier @ 2026-04-21 04:23 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

On Mon, Apr 20, 2026 at 04:00:01AM +0300, Alexander Lakhin wrote:
> Sorry, I forgot to attach the patch for your convenience.

I have a bunch of these lying around, already addressed, but not all.
I'll go incorporate your patch to plug in all the other holes you are
pointing at now.  With that included, I have a nice stack that has
accumulated, so I will merge quickly.  The plan is to do so roughly
every two months, depending on the numbers.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 55+ messages in thread

* Re: Typos in the code and README
  2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-12 21:15 ` Re: Typos in the code and README Heikki Linnakangas <hlinnaka@iki.fi>
  2024-04-12 21:17   ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-14 11:19     ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-15 12:25       ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-16 13:37         ` Re: Typos in the code and README Nazir Bilal Yavuz <byavuz81@gmail.com>
  2024-04-19 08:13           ` Re: Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
  2024-04-20 04:09             ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-04-28 08:05               ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-05-02 12:00                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-05-03 14:36                   ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-07-04 17:00                     ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-08-12 11:59                       ` Re: Typos in the code and README David Rowley <dgrowleyml@gmail.com>
  2024-09-02 18:00                         ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2024-09-03 05:24                           ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2024-09-03 05:51                             ` Re: Typos in the code and README Michael Paquier <michael@paquier.xyz>
  2025-01-01 16:00                               ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
  2026-04-19 19:00                                 ` Re: Typos in the code and README Alexander Lakhin <exclusion@gmail.com>
@ 2026-04-20 06:11                                   ` Daniil Davydov <3danissimo@gmail.com>
  1 sibling, 0 replies; 55+ messages in thread

From: Daniil Davydov @ 2026-04-20 06:11 UTC (permalink / raw)
  To: Alexander Lakhin <exclusion@gmail.com>; +Cc: Michael Paquier <michael@paquier.xyz>; David Rowley <dgrowleyml@gmail.com>; PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>

Hi,

On Mon, Apr 20, 2026 at 2:00 AM Alexander Lakhin <exclusion@gmail.com> wrote:
>
> Please look at another set of typos and inconsistencies introduced since
> 2026-01-01

I've found a few other typos. Although they are quite old, I think they should
be mentioned here :

1) Typo in tidstore.c
"Find the shared the shared radix tree" --> "Find the shared radix tree".

2) A bit inconsistent comment in twophase.c
```
/*
 * Recreates a state file. This is used in WAL replay and during
 * checkpoint creation.
 *
 * Note: content and len don't include CRC.
 */
static void
RecreateTwoPhaseFile(FullTransactionId fxid, void *content, int len)
```

This comment was introduced in the implementation of the two-phase commit [1].
At that time, this function was actually used during replaying the
XLOG_XACT_PREPARE record. Commit [2] changed that code, so now this function is
used only during checkpoint and restartpoint creation.

If restartpoint creation can be considered as part of the WAL replay, we can
leave this comment as is. Otherwise, I suggest changing it to something like
this :
/*
 * Recreates a state file. This is used during checkpoint/restartpoint creation.
 *
 * Note: content and len don't include CRC.
 */

Another idea - we can stop listing the places of function's usage so that we
don't need to touch this comment later.

[1] d0a89683a3a4dd8e76ef0a99101355999e519df5
[2] 728bd991c3c4389fb39c45dcb0fe57e4a1dccd71

--
Best regards,
Daniil Davydov





^ permalink  raw  reply  [nested|flat] 55+ messages in thread


end of thread, other threads:[~2026-04-21 04:23 UTC | newest]

Thread overview: 55+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-04-11 13:05 Typos in the code and README Daniel Gustafsson <daniel@yesql.se>
2024-04-11 13:21 ` Andrew Dunstan <andrew@dunslane.net>
2024-04-11 13:29 ` David Rowley <dgrowleyml@gmail.com>
2024-04-11 13:37   ` Daniel Gustafsson <daniel@yesql.se>
2024-04-12 20:55     ` Bruce Momjian <bruce@momjian.us>
2024-04-12 20:58       ` Bruce Momjian <bruce@momjian.us>
2024-04-12 21:15 ` Heikki Linnakangas <hlinnaka@iki.fi>
2024-04-12 21:17   ` Daniel Gustafsson <daniel@yesql.se>
2024-04-14 11:19     ` David Rowley <dgrowleyml@gmail.com>
2024-04-15 12:25       ` Daniel Gustafsson <daniel@yesql.se>
2024-04-16 08:28         ` Richard Guo <guofenglinux@gmail.com>
2024-04-16 13:37         ` Nazir Bilal Yavuz <byavuz81@gmail.com>
2024-04-19 08:13           ` Daniel Gustafsson <daniel@yesql.se>
2024-04-20 04:09             ` David Rowley <dgrowleyml@gmail.com>
2024-04-28 08:05               ` David Rowley <dgrowleyml@gmail.com>
2024-05-02 12:00                 ` Alexander Lakhin <exclusion@gmail.com>
2024-05-03 14:36                   ` David Rowley <dgrowleyml@gmail.com>
2024-07-04 17:00                     ` Alexander Lakhin <exclusion@gmail.com>
2024-07-25 13:45                       ` Daniel Gustafsson <daniel@yesql.se>
2024-08-12 11:59                       ` David Rowley <dgrowleyml@gmail.com>
2024-09-02 18:00                         ` Alexander Lakhin <exclusion@gmail.com>
2024-09-03 05:24                           ` Michael Paquier <michael@paquier.xyz>
2024-09-03 05:51                             ` Michael Paquier <michael@paquier.xyz>
2024-09-03 10:00                               ` Daniel Gustafsson <daniel@yesql.se>
2024-09-04 01:25                                 ` Michael Paquier <michael@paquier.xyz>
2024-09-04 08:23                                   ` Daniel Gustafsson <daniel@yesql.se>
2024-09-04 15:34                                     ` David Rowley <dgrowleyml@gmail.com>
2024-09-05 00:03                                       ` Michael Paquier <michael@paquier.xyz>
2024-09-06 09:42                                       ` Daniel Gustafsson <daniel@yesql.se>
2025-01-01 16:00                               ` Alexander Lakhin <exclusion@gmail.com>
2025-01-01 23:22                                 ` David Rowley <dgrowleyml@gmail.com>
2025-04-19 08:00                                   ` Alexander Lakhin <exclusion@gmail.com>
2025-04-19 10:04                                     ` Michael Paquier <michael@paquier.xyz>
2025-04-19 11:00                                       ` Alexander Lakhin <exclusion@gmail.com>
2025-04-20 01:32                                     ` David Rowley <dgrowleyml@gmail.com>
2025-04-20 22:42                                       ` David Rowley <dgrowleyml@gmail.com>
2025-04-20 23:21                                         ` Michael Paquier <michael@paquier.xyz>
2025-04-21 01:52                                           ` David Rowley <dgrowleyml@gmail.com>
2026-01-01 08:00                                             ` Alexander Lakhin <exclusion@gmail.com>
2026-01-04 23:02                                               ` Michael Paquier <michael@paquier.xyz>
2026-01-04 23:32                                                 ` Tom Lane <tgl@sss.pgh.pa.us>
2026-01-05 00:35                                                   ` Michael Paquier <michael@paquier.xyz>
2026-01-05 00:46                                                     ` Tom Lane <tgl@sss.pgh.pa.us>
2026-01-05 21:39                                                   ` Andres Freund <andres@anarazel.de>
2026-01-05 21:43                                                     ` Tom Lane <tgl@sss.pgh.pa.us>
2026-01-05 21:50                                                       ` Andres Freund <andres@anarazel.de>
2026-01-05 21:55                                                         ` Tom Lane <tgl@sss.pgh.pa.us>
2026-01-05 17:24                                               ` Andres Freund <andres@anarazel.de>
2026-01-05 19:00                                                 ` Alexander Law <exclusion@gmail.com>
2026-01-06 03:27                                                   ` Michael Paquier <michael@paquier.xyz>
2026-01-06 13:43                                                     ` Andres Freund <andres@anarazel.de>
2026-04-19 19:00                                 ` Alexander Lakhin <exclusion@gmail.com>
2026-04-20 01:00                                   ` Alexander Lakhin <exclusion@gmail.com>
2026-04-21 04:23                                     ` Michael Paquier <michael@paquier.xyz>
2026-04-20 06:11                                   ` Daniil Davydov <3danissimo@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox