Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wEhrX-004JPV-0Q for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 06:12:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wEhrW-000zTr-0Z for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Apr 2026 06:12:02 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <3danissimo@gmail.com>) id 1wEhrV-000zTi-2n for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 06:12:01 +0000 Received: from mail-yx1-xb12f.google.com ([2607:f8b0:4864:20::b12f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from <3danissimo@gmail.com>) id 1wEhrT-00000001sYP-3eYO for pgsql-hackers@lists.postgresql.org; Mon, 20 Apr 2026 06:12:01 +0000 Received: by mail-yx1-xb12f.google.com with SMTP id 956f58d0204a3-652fcd5a6d7so3003300d50.2 for ; Sun, 19 Apr 2026 23:12:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1776665519; cv=none; d=google.com; s=arc-20240605; b=HgBCNp/OygO8DZPSTcD8DqGqwT4cXw5865tZLKPE/qPpMNEXzwomFgfeH1w8RAHIV1 O3+waDMkltgHgXUJOjM0pGYy64udia5Rv/9KXQi1q/1Y6tCALnhejC/UFiJ6F/QmS1Eu uDieSKKFhHnA2WQCMCXAtv/+rfsu27eDuqEZ1ij4Yo6EiI80IiR/89VOqGVt64I02Qlf xRulVuVIH6MGSNGGV5oXuSS1KSlC/SGtEqJcNcBd3k6cxDzTsrJwJ0bZdoujxY7ix/Oz NYOq1pIni52biixTInfwbD/OvOZDvKd4PanObFqfKgH+yqiZqBKNHOAzCHC6QoBXCcjN m4fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=rGeEI7OeLuxEYiqiUQf5Fr2P0WKSMOqiOEzh15PfJ3U=; fh=r5Rphnc5GP/beljnTyVvfvGwVL75OS+Y/7cYGxsEh0g=; b=E/MiGljq6ub8EH0b8gY4j1+xw0ukiQaNIXvaveDDKW2MJ7mFqb5P9x06tvg+E6EOAE JzTcAYKT6HfLKsciRvWH+/X0QkOnO0KTiPV5sT6Dc3f6FFmBAbPnqTj3Zi4YFKMZWfyA rB/XMEkdKmPr8oX+24I+vQm3RlqQcdiYvXmOYo3lWWMoEcrJ9kNviJmsbTrsnaTKP9Fb ScwyKTuk0TJhXZFBEGXe27NWcY2WxR7Ksl9qH/QXfEqZrcnIbc+ExG8yKQ1FbW7VzoHt F0QbFyvTHtjbGmm4UlkGk+py+xFPsSRJPdN+vufKvbIBdws6r8w9Ebx1VDi6BoxFgHxK cX0w==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776665519; x=1777270319; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=rGeEI7OeLuxEYiqiUQf5Fr2P0WKSMOqiOEzh15PfJ3U=; b=Re3Vu3ZhaHDuPui5umUEOYdP7yO9hOQy7tviECrL+cruMDvsd6AZrLlzV6T0snXObj ocd7OR/NVBzgZNsXgyHxTTkBsktaQSiZjEvK6/mMdEW8fUoCeTRm19i5tAzOIMA3B8SN huIrqm8kdMal3cJKkGxxgyQnjzRcdON7FCMlLQRkFXiUJcdxwUGkF+KBqICuxtL6diik VbtDtT7OnGCv0PL0fYQXsttvnIrGyReS9Kk70fE88WqexeMUcJqYZ3L9HiGtkr8qzRQV uqJ9qQVmfkn1vcfCcemhseqpv7Vc6Qsn2e/3BOYsd8JPQWAsACBXxnfFnEsofSnThs+x iOiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776665519; x=1777270319; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=rGeEI7OeLuxEYiqiUQf5Fr2P0WKSMOqiOEzh15PfJ3U=; b=HeVrxYQnp9kmfPqSPe2axZOL3OvBcS+EqCHBhxfVY2i/dILn+qSWDIkCOz6UP7Eb7E RFzABmUeWq9hQo7R2A1RXDvNG09rFiPDTasw5Uol4vAtefVEqDibTtkR206jmGeHJhoX HQLWsr9b740m2l0BKqKCuTUnYgTsv/8VlhJq2vMj129uWMx6fgco3Cx1gzCaX3+spMWO nJd11hLDIyIE6yKm3e0b9xJA0Y7PB86f4wDj/RlpDueEvmfah9iwA5mNnzNZzNXttsL1 XrM3IbiY7IBLonqKtlNFwJ0cRUikmqKtbbHd9LI1jT3qhzS69QcqPrYJMC+gfATSz/t+ lfCQ== X-Forwarded-Encrypted: i=1; AFNElJ93rlyeYSEg72bCtYD1Gy7oueTmEHwcpZhd6zJTgvlEoPW1KQD+cmPEn6I3o3D6wu96OtZdAVV4Bthph5Np@lists.postgresql.org X-Gm-Message-State: AOJu0YylH531PGVm5PkBgjczFJQNOcNKKz1aL7L9z7V2qeb1MrUvONZ0 LfAVd6LeFVia2G8vV5fb8j3XHFqYcs10P/SJ272JSVqiu+umZPKAkUfpM30kn9w1E5XvOA8hgzH jYrxiukqei8Hg5aOLWNFwDLFqN0JyQok= X-Gm-Gg: AeBDietsbf7VeKUfb2PT1HNtw2GnIoiXu0As8eh0wfezjHGW9daAQrcF5KvxDeL28HE lTY79e+ybLGAysoZuNhE5HoHtg5gh37nv+JzLxvMPPKzbCpeBzWwBlDp4ErtI7BkGqRgyy68aaf 2mbGbR3cNcV0ULqXj1fnkR4upck/6FjHY9net2dJkHsC4bAdWFgiI83cblA5VNGd80B5V1GzTY9 rHUmt1vAgsQJJqOrbbNrDaE3YylsL+YWJul2JKgqL9tqGp3+PyEwSkzwTEeJceJh2IXR1yvD/2L etwKl3ew7jlxBmPFT1I= X-Received: by 2002:a05:690e:484d:b0:649:ef06:161d with SMTP id 956f58d0204a3-653107f8e3bmr7373975d50.12.1776665519599; Sun, 19 Apr 2026 23:11:59 -0700 (PDT) MIME-Version: 1.0 References: <5812a0b9-b0cf-4151-9a14-d9f00e4f2858@gmail.com> <2d7d47ef-98a3-47ff-9564-c4c4f7b0889f@gmail.com> In-Reply-To: <2d7d47ef-98a3-47ff-9564-c4c4f7b0889f@gmail.com> From: Daniil Davydov <3danissimo@gmail.com> Date: Mon, 20 Apr 2026 13:11:48 +0700 X-Gm-Features: AQROBzAt9UFOkeG4iub9kkq0Y5v3eTBXhWCWC5uVd3MWRZPtunoXXkR9pQKHymQ Message-ID: Subject: Re: Typos in the code and README To: Alexander Lakhin Cc: Michael Paquier , David Rowley , PostgreSQL Developers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Mon, Apr 20, 2026 at 2:00=E2=80=AFAM Alexander Lakhin 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 sho= uld 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 functio= n is used only during checkpoint and restartpoint creation. If restartpoint creation can be considered as part of the WAL replay, we ca= n leave this comment as is. Otherwise, I suggest changing it to something lik= e this : /* * Recreates a state file. This is used during checkpoint/restartpoint crea= tion. * * Note: content and len don't include CRC. */ Another idea - we can stop listing the places of function's usage so that w= e don't need to touch this comment later. [1] d0a89683a3a4dd8e76ef0a99101355999e519df5 [2] 728bd991c3c4389fb39c45dcb0fe57e4a1dccd71 -- Best regards, Daniil Davydov