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 1wAgA0-000DdK-11 for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 03:34:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAg9y-003N0D-1s for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 03:34:27 +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 ) id 1wAg9y-003N05-10 for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2026 03:34:27 +0000 Received: from mail-pg1-x533.google.com ([2607:f8b0:4864:20::533]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAg9w-000000006HL-3qQT for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2026 03:34:26 +0000 Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-c70e27e2b74so175530a12.0 for ; Wed, 08 Apr 2026 20:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775705664; x=1776310464; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+AHk1mRBTwZCdastzebLavwfQ1eTF+z+iDLw7dn6ulY=; b=Z8Bi4g44p4m2G6y/qJ1ZqR/nrUgWl5OP/yrS69crEpvm25Ka6y71JMHYWc1iuMRRal AlnyfwSUTaVhl39QGYkKWWwLz7BTXwJBMY43PU287Oj9JJxyy8fjbgedqmxJdTHzy1+W MO5LY/eYf9wfCAI9A7sviUJMJdn5okjLbqF/nmxtcbIQtu4dtKvplaGuwr2LpnOhIGXW AS2ZVPCBqQ26IZzjluHq20Zab0rJgtLBjyYM81fmf2JoN4XWNmLmgcnkaoV40t8AfowP 11NOVd0htGRjMWYb5otBB7Mn0KGafwkADJeLdB3HsQYObx6i6SRY/uWY5+VezBn8LaPK xlsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775705664; x=1776310464; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+AHk1mRBTwZCdastzebLavwfQ1eTF+z+iDLw7dn6ulY=; b=SgsA/o4TjTmkfvpiz37FeeORQH+tBNlYKJhEnswc0nAowSmLzaLq05ZboT/5PVDdXn GQRiqjgZ1qiPY6BQHLx0C9czI0xZehDThq/BMBKlDvZXCW8MABs/5EMcPu+GRMBxLAm2 XerH89rmJxM0k+IACwZDmG76OQllgeurWF++9CqE6IaowhK6m2BZkwj5hrdd11oGVOkU kIHzF3WNZyrYZPZyF+5yjYV9cFOCMAyeyRexHUDtBhjTM2zbAYris/bXZOxjR0kCG0D0 ViosSnPyIffwEFNdF1tmLa1wnTNuZCYUwIcKoRcvScU7HVXP820K9ubWSA8nmWMhYj36 F/IA== X-Gm-Message-State: AOJu0YwCFZMydD1TC3ODseEmOCyjhRagBHhoYSYcnOnFvCGFeq26JbS1 71L4wyiMQFsNBfJ3HozLtUwv01mLndVgdlhTbyFwrzRmOjU8fgRyoGgE2eG8XKtD8qNa4g== X-Gm-Gg: AeBDievaQz8h2y7LWZa3LvemebFEVhnraVg5E9pYpV+kNbVRSC4QVoHUigXpts8/Sll BRJzwOCxaEcY8fGur9/fQQnsIADstconaN8lKlSxFR5EfCCkIvYiZq6gEk6mMFiIrdPIpmfgCsm 5ynhW9IzZwXP8r/CaIYnbp0s2AAtT+eMMKp2gzz7TLbPlOr9/c8eiru6Lzr4h+oTd0sp/hIG4FO Dno4qdGuPMdVgOu77U/Uz505qHrGbsCBbAfKB/Uwrb5kpP/xdnekSrMj5JteEaf6oazzCyBMom4 cZXVtoZetmzg6ct7x1kpw369o8/nntfU5O6Dm2585jxTM8873iYPDqmDI92a+ufebItAJogcZ9n BZHUvatwQJ0JLQUZ8bIgSsTtH24RspB91eLqx/451Up/DsvaOTj5ZfyNaE41grkv1D/fDGpYfbg h4qwGmybkptsUd0w0mHF2aoMT3/8MqfrI= X-Received: by 2002:a17:903:286:b0:2b2:90f3:d774 with SMTP id d9443c01a7336-2b290f3d86dmr192219355ad.2.1775705664198; Wed, 08 Apr 2026 20:34:24 -0700 (PDT) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b27478b84esm209837655ad.32.2026.04.08.20.34.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Apr 2026 20:34:23 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: Add missing period to HINT messages From: Chao Li In-Reply-To: Date: Thu, 9 Apr 2026 11:33:43 +0800 Cc: PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <0B7E46E8-EA1B-48AA-A1A5-BC39B5073D40@gmail.com> References: <9FE5AA84-F1A1-4E1C-8EF8-3AFD6C46B318@gmail.com> To: Peter Smith X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Apr 9, 2026, at 11:24, Peter Smith wrote: >=20 > On Thu, Apr 9, 2026 at 12:09=E2=80=AFPM Chao Li = wrote: >>=20 >>=20 >>=20 >>> On Apr 9, 2026, at 07:30, Peter Smith wrote: >>>=20 >>> Hi, >>>=20 >>> According to the error message style guide [1], "Detail and hint >>> messages: Use complete sentences, and end each with a period." >>>=20 >>> I found there is a small group of HINT messages not following that = period rule. >>>=20 >>> PSA a patch that fixes the missing period. In passing, also fixed a >>> typo in a hint message /msut/must/. >>>=20 >>> ~~~ >>>=20 >>> On further inspection, lots of these affected messages don't even = seem >>> grammatically correct to me. >>>=20 >>> I did not modify them, but here are examples of what I mean. >>>=20 >>> e.g. >>> "ALTER TABLE ... MERGE PARTITIONS can only merge partitions don't = have >>> sub-partitions." >>> /don't have/that don't have/ >>>=20 >>> e.g. >>> "ALTER TABLE ... SPLIT PARTITION can only split partitions don't = have >>> sub-partitions." >>> /don't have/that don't have/ >>>=20 >>> e.g. >>> "To split DEFAULT partition one of the new partition must be = DEFAULT." >>> missing word? -- "To split the DEFAULT partition" >>> should be plural? -- "one of the new partitions" >>>=20 >>> e.g. >>> "%s require combined bounds of new partitions must exactly match the >>> bound of the split partition." >>> /require/requires/ ? >>> /match the bound/match the bounds/ >>>=20 >>> =3D=3D=3D=3D=3D=3D >>> [1] = https://www.postgresql.org/docs/devel/error-style-guide.html#ERROR-STYLE-G= UIDE-GRAMMAR-PUNCTUATION >>>=20 >>> Kind Regards, >>> Peter Smith. >>> Fujitsu Australia >>> >>=20 >> LGTM. >>=20 >> BTW, errdetail should follow the same style, and I see some detail = messages miss periods, maybe this patch can include those as well. >>=20 >=20 > Yep. It is already under way. I will post the equivalent errdetail > patch shortly. (as soon as it passes running make- check-world). >=20 > =3D=3D=3D=3D=3D=3D > Kind Regards, > Peter Smith. > Fujitsu Australia I am not sure if your scope includes contrib/, if yes, I am sure you = will find some occurrences there. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/