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.94.2) (envelope-from ) id 1qauWP-00AfR8-UH for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Aug 2023 08:56:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qauWN-005F8I-PR for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Aug 2023 08:56:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qauWN-005F7r-Ei for pgsql-hackers@lists.postgresql.org; Tue, 29 Aug 2023 08:56:23 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qauWK-001hYG-Bs for pgsql-hackers@lists.postgresql.org; Tue, 29 Aug 2023 08:56:22 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1c0d5b16aacso23137115ad.1 for ; Tue, 29 Aug 2023 01:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693299378; x=1693904178; h=content-transfer-encoding:mime-version:user-agent:from:subject:to :message-id:date:from:to:cc:subject:date:message-id:reply-to; bh=pPUV/5zS/syyph6CFpqunQHff8u9vHkTQGM0mFRng/c=; b=rTlp7EPaRp/po9jUmd4hih0HDzL5iOKffXie6oC/+4onlUILkws6OupaVPpHN2ds9R yTB8FlZWQlcUxF7oY1Xt3FmwBkU8rS2X92dwwaMOUySv9svQpYmFGBDVQYzo9gjE8y0u Hkfd7B0SjKcNVx8FEhKom6Ze8WOBFBmd63vN5CbC7EDv2Zq4ORexIxPYg5kzDM7PsZYA 3bLl0JKDYkFvRKlqYJyW70bfM6STOSAvYOevqlnaqVzLS8xV4oik1E9wOXycylj2r5/H UYF7+JZdt9Rnc2wYlV/x0te27PJ0dWxEuw2T5nEFc8W/8/ntGZgDGaf99mTsKt5WKwgo jX/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693299378; x=1693904178; h=content-transfer-encoding:mime-version:user-agent:from:subject:to :message-id:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=pPUV/5zS/syyph6CFpqunQHff8u9vHkTQGM0mFRng/c=; b=dXNC9x3v3qK+FZjvq4Sbi2RhvlOSswfnCftB2xhr2sRbPzhchMG/YjzYnHdwYGuGAk 5g8ctdCJUq803sn3SgpB/72LCbGU+xk1svahc4nWpagRJpKLpKQtPesAlGp3WU/ZrM2o Ofyz56qeLQowemxu68uoYAXi+h6mEyHIAOaH3hanvxGkjJY7r+UcB42gMWT5RZb0ZOcA dZQpX5IzNvqMU1C0dJ7jIhz7wJ0vJGhj7UwvJgJhXHSbvgEZVgcfI7UaWMWa85TJrHUm WLSS/3n2VLMQyxhNdnlHXgFOzwH9mlwos0YX41gMtbPtMTrLJjnyj+i1LA6YU65Z5oMD A90w== X-Gm-Message-State: AOJu0YxL5RWzEdPbS41gbEqwZNE/Uir/x6wilRdgMtCM6CVEZWU4MiHp KbTGc082/JiCynXmJzJ5TQYt7Ta7UB0= X-Google-Smtp-Source: AGHT+IFKHtCT6lgJj5NKhO7Y4pthAYwz33JzHkYsaziip8cirsdY8DIo2p04XKaDOmpo4Q+KDJXh0g== X-Received: by 2002:a17:902:cec9:b0:1be:c879:6e71 with SMTP id d9-20020a170902cec900b001bec8796e71mr27657523plg.63.1693299377697; Tue, 29 Aug 2023 01:56:17 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id jg3-20020a17090326c300b001bdc6ca748esm8852553plb.185.2023.08.29.01.56.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Aug 2023 01:56:16 -0700 (PDT) Date: Tue, 29 Aug 2023 17:56:15 +0900 (JST) Message-Id: <20230829.175615.682972421946735863.horikyota.ntt@gmail.com> To: pgsql-hackers@lists.postgresql.org Subject: Standardize spelling of "power of two" From: Kyotaro Horiguchi User-Agent: Mew version 6.8 on Emacs 27.2 Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Tue_Aug_29_17_56_15_2023_239)--" Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ----Next_Part(Tue_Aug_29_17_56_15_2023_239)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello. pg_resetwal and initdb has an error message like this: msgid "argument of --wal-segsize must be a power of 2 between 1 and 1024" In other parts in the tree, however, we spell it as "power of two". I think it would make sense to standardize the spelling for consistency. See the attached. regards. -- Kyotaro Horiguchi NTT Open Source Software Center ----Next_Part(Tue_Aug_29_17_56_15_2023_239)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="standardize_spelling_of_power_of_two.patch" diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index c66467eb95..905b979947 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -3350,7 +3350,7 @@ main(int argc, char *argv[]) check_need_password(authmethodlocal, authmethodhost); if (!IsValidWalSegSize(wal_segment_size_mb * 1024 * 1024)) - pg_fatal("argument of %s must be a power of 2 between 1 and 1024", "--wal-segsize"); + pg_fatal("argument of %s must be a power of two between 1 and 1024", "--wal-segsize"); get_restricted_token(); diff --git a/src/bin/pg_resetwal/pg_resetwal.c b/src/bin/pg_resetwal/pg_resetwal.c index 9bebc2a995..25ecdaaa15 100644 --- a/src/bin/pg_resetwal/pg_resetwal.c +++ b/src/bin/pg_resetwal/pg_resetwal.c @@ -298,7 +298,7 @@ main(int argc, char *argv[]) exit(1); set_wal_segsize = wal_segsize_mb * 1024 * 1024; if (!IsValidWalSegSize(set_wal_segsize)) - pg_fatal("argument of %s must be a power of 2 between 1 and 1024", "--wal-segsize"); + pg_fatal("argument of %s must be a power of two between 1 and 1024", "--wal-segsize"); break; } ----Next_Part(Tue_Aug_29_17_56_15_2023_239)----