Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXNWV-00078w-2a for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Oct 2021 12:56:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mXNWU-0007h2-2w for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Oct 2021 12:56:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXNWG-0002s7-Ow for pgsql-hackers@lists.postgresql.org; Mon, 04 Oct 2021 12:56:37 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXNW9-0007Pi-9V for pgsql-hackers@lists.postgresql.org; Mon, 04 Oct 2021 12:56:36 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id B688F3201C30 for ; Mon, 4 Oct 2021 08:56:25 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Mon, 04 Oct 2021 08:56:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h= from:to:subject:date:message-id:mime-version:content-type; s= fm3; bh=Ir5sCychTnuHYvhbblA/pqKnkEEWoWR+3V7j8ad9hBE=; b=E5FbMkx4 BlqGNw/e5Wp+EwxO2oPMoZcqobLwmDG3hYQbbHymjV3GakLkh1Q8RiVhamN0ZGW3 3kcV7hulmssubk1f4XVdk0CU6MJlLT4kp8JNKz5RrX1/iVpjIV+Pde10tDd+PHRr S0RI+302ub1zP3mIQiMCwkHhobgXkRqakIcRgUPNkwocXpT6z0YxrxVYYUOC8t/U MpKXMceUUr7vaRnuvrhElDZOVRzTGTbpZd0tglNaZu8Ukw+5n0Zmk4He8V8A1Uss YwSlwPrE1uZ6+MY8ZLJi3w1+VB2Xd0wIkXw2GqOju3j+JIexCtvqfpr3/GmcxiRt hCaPoeq9Sjg5Nw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=Ir5sCychTnuHYvhbblA/pqKnkEEWo WR+3V7j8ad9hBE=; b=Rq/inJs79AukcrWsSn2d69MNuekSGAvRH7Of8Xv0RnFZ9 vgHFKQkSm2BDTNmUB503YwkrKW5LEnQYDS/kUYsYMdVcMmxPhDpixK4L3yaLnygp RruGZodrhQJnRh33+MiAu0Xu7iUhOMzltFMyA/uw9FscP4LeXuzay9oJgxEZhxCD Y76MeJL0kW7Jozz+X90F/0Zr8fOGxqn0R5socJf2WPK93YAb6JM9esqKZyVE7t3w 46xZbzikK3iEkdDVTB/vOHkyQnc3c/eOQpxnAhHzao0BmIGtaDj6U8dQ27etZ0GB bcVuSJbWOfwARmmOPqTNyFKq5RsMalmALsFw6QoWw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudelvddgheehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkfgggtgesmhdtreertd erjeenucfhrhhomhepffgrghhfihhnnhgpkfhlmhgrrhhipgforghnnhhsnohkvghruceo ihhlmhgrrhhisehilhhmrghrihdrohhrgheqnecuggftrfgrthhtvghrnhepvddvvdevve fhvefgfeffvdfhheehkeeftdffffeftdejffduleevveegteetteeinecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepihhlmhgrrhhisehilhhmrg hrihdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 4 Oct 2021 08:56:24 -0400 (EDT) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: pgsql-hackers@lists.postgresql.org Subject: Duplicat-word typos in code comments Date: Mon, 04 Oct 2021 13:56:23 +0100 Message-ID: <87bl45t0co.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-=-= Content-Type: text/plain Hi hackers, I noticed a duplicate-word typo in a comments recently, and cooked up the following ripgrep command to find some more. rg --multiline --pcre2 --type=c '(? Date: Mon, 4 Oct 2021 13:44:51 +0100 Subject: [PATCH] Fix some duplicate words in comments --- src/backend/access/transam/parallel.c | 2 +- src/backend/catalog/heap.c | 5 ++--- src/backend/commands/copyfromparse.c | 2 +- src/backend/partitioning/partdesc.c | 4 ++-- src/backend/storage/buffer/bufmgr.c | 2 +- src/backend/storage/ipc/standby.c | 2 +- src/include/access/tableam.h | 2 +- 7 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/backend/access/transam/parallel.c b/src/backend/access/transam/parallel.c index 5fdcff2a3b..bb1881f573 100644 --- a/src/backend/access/transam/parallel.c +++ b/src/backend/access/transam/parallel.c @@ -1534,7 +1534,7 @@ ParallelWorkerReportLastRecEnd(XLogRecPtr last_xlog_end) * * Also explicitly detach from dsm segment so that subsystems using * on_dsm_detach() have a chance to send stats before the stats subsystem is - * shut down as as part of a before_shmem_exit() hook. + * shut down as part of a before_shmem_exit() hook. * * One might think this could instead be solved by carefully ordering the * attaching to dsm segments, so that the pgstats segments get detached from diff --git a/src/backend/catalog/heap.c b/src/backend/catalog/heap.c index 83746d3fd9..41d1f3b1c3 100644 --- a/src/backend/catalog/heap.c +++ b/src/backend/catalog/heap.c @@ -3547,9 +3547,8 @@ heap_truncate_find_FKs(List *relationIds) /* * If this constraint has a parent constraint which we have not seen * yet, keep track of it for the second loop, below. Tracking parent - * constraints allows us to climb up to the top-level level constraint - * and look for all possible relations referencing the partitioned - * table. + * constraints allows us to climb up to the top-level constraint and + * look for all possible relations referencing the partitioned table. */ if (OidIsValid(con->conparentid) && !list_member_oid(parent_cons, con->conparentid)) diff --git a/src/backend/commands/copyfromparse.c b/src/backend/commands/copyfromparse.c index fdf57f1556..aac10165ec 100644 --- a/src/backend/commands/copyfromparse.c +++ b/src/backend/commands/copyfromparse.c @@ -37,7 +37,7 @@ * the data is valid in the current encoding. * * In binary mode, the pipeline is much simpler. Input is loaded into - * into 'raw_buf', and encoding conversion is done in the datatype-specific + * 'raw_buf', and encoding conversion is done in the datatype-specific * receive functions, if required. 'input_buf' and 'line_buf' are not used, * but 'attribute_buf' is used as a temporary buffer to hold one attribute's * data when it's passed the receive function. diff --git a/src/backend/partitioning/partdesc.c b/src/backend/partitioning/partdesc.c index 9a9d6a9643..3220d4808d 100644 --- a/src/backend/partitioning/partdesc.c +++ b/src/backend/partitioning/partdesc.c @@ -91,8 +91,8 @@ RelationGetPartitionDesc(Relation rel, bool omit_detached) * cached descriptor too. We determine that based on the pg_inherits.xmin * that was saved alongside that descriptor: if the xmin that was not in * progress for that active snapshot is also not in progress for the - * current active snapshot, then we can use use it. Otherwise build one - * from scratch. + * current active snapshot, then we can use it. Otherwise build one from + * scratch. */ if (omit_detached && rel->rd_partdesc_nodetached && diff --git a/src/backend/storage/buffer/bufmgr.c b/src/backend/storage/buffer/bufmgr.c index e88e4e918b..08ebabfe96 100644 --- a/src/backend/storage/buffer/bufmgr.c +++ b/src/backend/storage/buffer/bufmgr.c @@ -666,7 +666,7 @@ ReadRecentBuffer(RelFileNode rnode, ForkNumber forkNum, BlockNumber blockNum, { /* * It's now safe to pin the buffer. We can't pin first and ask - * questions later, because because it might confuse code paths + * questions later, because it might confuse code paths * like InvalidateBuffer() if we pinned a random non-matching * buffer. */ diff --git a/src/backend/storage/ipc/standby.c b/src/backend/storage/ipc/standby.c index 077251c1a6..b17326bc20 100644 --- a/src/backend/storage/ipc/standby.c +++ b/src/backend/storage/ipc/standby.c @@ -130,7 +130,7 @@ InitRecoveryTransactionEnvironment(void) * * This must be called even in shutdown of startup process if transaction * tracking has been initialized. Otherwise some locks the tracked - * transactions were holding will not be released and and may interfere with + * transactions were holding will not be released and may interfere with * the processes still running (but will exit soon later) at the exit of * startup process. */ diff --git a/src/include/access/tableam.h b/src/include/access/tableam.h index 9f1e4a1ac9..4aff18215b 100644 --- a/src/include/access/tableam.h +++ b/src/include/access/tableam.h @@ -157,7 +157,7 @@ typedef struct TM_FailureData * work, too. This is a little like bottom-up deletion, but not too much. * The tableam will only perform speculative work when it's practically free * to do so in passing for simple deletion caller (while always performing - * whatever work is is needed to enable knowndeletable/LP_DEAD index tuples to + * whatever work is needed to enable knowndeletable/LP_DEAD index tuples to * be deleted within index AM). This is the real reason why it's possible for * simple index deletion caller to specify knowndeletable = false up front * (this means "check if it's possible for me to delete corresponding index -- 2.30.2 --=-=-=--