Re: Typos in the code and README
Daniil Davydov <3danissimo@gmail.com>
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
Commits
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Fix typo in planner.c
- ae283736025c 19 (unreleased) landed
-
Fix meson build of snowball code.
- b85d5dc0e7e9 19 (unreleased) landed
-
Update to latest Snowball sources.
- 7dc95cc3b94f 19 (unreleased) landed
-
Remove unneeded defines from pg_config.h.in
- 7d854bdc5b72 19 (unreleased) landed
-
Fix typos and inconsistencies in code and comments
- b8cfcb9e00da 19 (unreleased) landed
-
Fix a few more duplicate words in comments
- 78eda9e2648a 18.0 landed
-
Fix a few duplicate words in comments
- 84fd3bc14103 18.0 landed
-
Fix typos and grammar in the code
- 88e947136b47 18.0 landed
-
Fix an assortment of spelling mistakes and typos
- 11012c503759 18.0 landed
-
Fix inconsistent LWLock tranche name "CommitTsSLRU"
- 07b828e9d4aa 17.0 landed
- 08b9b9e043bb 18.0 landed
-
Fix typos in code comments and test data
- 31a98934d169 18.0 landed
-
Fix typos and grammar in code comments and docs
- 4236825197e8 18.0 landed
-
Fix a series of typos and outdated references
- ffabb56c9460 18.0 landed
-
Optimize InvalidateAttoptCacheCallback() and TypeCacheTypCallback()
- 40064a8ee1b3 18.0 cited
-
pg_upgrade: Remove unused macro
- 88e3da5658c5 18.0 landed
-
pgcrypto: Remove unused binary from clean target
- cc59f9d0ff27 18.0 landed
-
Fix an assortment of typos
- a42fc1c903b5 17.0 landed
-
Fix duplicated consecutive words in comments
- 310cd8ab386c 17.0 landed
-
Remove unused function prototype
- f6e845133630 17.0 landed
-
Fix incorrect parameter name in prototype
- 9c58bf1507be 17.0 landed
-
Fix typos and duplicate words
- 950d4a2cb1d5 17.0 landed
-
Speedup 2PC recovery by skipping two phase state files in normal path
- 728bd991c3c4 10.0 cited
-
Two-phase commit. Original patch by Heikki Linnakangas, with additional
- d0a89683a3a4 8.1.0 cited