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 1v9f2V-004qF8-2Y for pgsql-docs@arkaria.postgresql.org; Fri, 17 Oct 2025 07:38:14 +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 1v9f2T-000XYa-7k for pgsql-docs@arkaria.postgresql.org; Fri, 17 Oct 2025 07:38:12 +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 1v9f2S-000XYR-UN for pgsql-docs@lists.postgresql.org; Fri, 17 Oct 2025 07:38:12 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v9f2P-002fnp-2P for pgsql-docs@lists.postgresql.org; Fri, 17 Oct 2025 07:38:11 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-2897522a1dfso16510765ad.1 for ; Fri, 17 Oct 2025 00:38:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760686686; x=1761291486; 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=Rp59RSe3BjQf9enEsjpOzIb3sGh0D7ly3das4QRfOd8=; b=hOCKw53qedUOq7Bhig5w1+6JppAKcM5uUVuN/Wa3vbT42zlciAMg1xRxSP59FF/1vt yhQbgGA8Zi4fV6R8TCUvQ1Yq+7laQl8GZzHkbC6tQFOh640yyp42umS0J/zu60o3RU3w THNYs+PehiWE/6+JMM29XeMq6109I5rLmSP0jx6roqOTIPN3HFm9ujZvgNJyVK5V0bYY miw168Xjkwj7wkNRayyJKcyiEzoPHswQQtynNae4B89+9/3UrNqIhVetjDFiLrhrAag9 b3dULq+mstpiZR1HWcxly1dn0CiAOSF8Mu9CqO16POz3Y52NtprTfcR8x0zYWVN4T14b hhPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760686686; x=1761291486; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rp59RSe3BjQf9enEsjpOzIb3sGh0D7ly3das4QRfOd8=; b=lJiAD4tB8lbPguIpDd9esz14juq/EWW/+2qTBHpt8GzhL93/SfGNROvtAm/92XVthH ZstUt6+SUc0yTWC0GRndBdWWc/+lz4/1ce4YKehUqv4Oo/BONMnwgVGeyqVFZCc8Vsjo ilH4bYyjhRd01rGli3AHnjyXmRqeeYVmpZeU3vfNEzue5Mo2/MF/YayV5A53Y7Rkc0mY +bwXq46jizuzMF8qbTOX6MUQ9dhHux0lGaz88rTOzwQHE7/I9O1wq8Dpj/QfN8o2bt6v 4Y9c//ZG7B3YOr/5vTXb7Gyww/gnJd/YKDBhlD6Qk0hTbZf2d3EYiPBVPUkRu6v6PaNi fTnw== X-Forwarded-Encrypted: i=1; AJvYcCWWzQL1g5kn4EUhDJQtQX0/xD08uoGtUhfQh9om/dfQfmYGZyCrq7AJRcsZ2zG5Z4fNFtW/RI8QdsQi@lists.postgresql.org X-Gm-Message-State: AOJu0YyspaMRab8y4R2m4ctqHyi3BTIAO/7aAe4D7lV7CtN1KpM/XLpc Fh09jTvDSDQcsfjBo0Uw+/zOAuSqPI+4EGuCV0J0DJ9Xm8wpiYWLi/66/AJcDKub1/6KXQvObmA giMEHa9OHmHABiNpXu/Sx6+lCPSJ4sAQ= X-Gm-Gg: ASbGncuhyGzx1dH6qSUIaLJ2DITdmvC+AHFKYpMCk7GTUkS2fFW1CIzj9cxg/LfQ79J O+5gf82VLs4Jtfv34gEaILSEMzni5yoh8pstgaZ8G9kMTlDetOvLAhsNQfAJ7/D1cIiCcbNRL9O o4j9kavqW3RdCmCqdAN4Vv4P3VFiD2gYznEmQ1WfjW0awYeMVeb2R0f3Y7YQA+ZpjqJTY0jY33H l581VNe7yun4zwXtczjD8CIRphGkOVwGsKeudIR1G4MyRujExECqv+17tU7Gg== X-Google-Smtp-Source: AGHT+IFHWCqS+9kO57Qyp+X9wPoHs1uUJ3EiZsnw4Kz4+EIm/ygwYq9myM3yaQv7PrEnz6ilxrYaDOZLYticQ9jPYh4= X-Received: by 2002:a17:902:ce8c:b0:267:e3af:ae67 with SMTP id d9443c01a7336-290c9ca6b29mr40251345ad.14.1760686686528; Fri, 17 Oct 2025 00:38:06 -0700 (PDT) MIME-Version: 1.0 References: <176044409338.770.16064383081308443747@wrigleys.postgresql.org> <1307875.1760556576@sss.pgh.pa.us> In-Reply-To: From: Sergei Katkovsky Date: Fri, 17 Oct 2025 11:37:40 +0400 X-Gm-Features: AS18NWCzPdFTMWbtmaVpOBFVp3LdLRjtag7-MG9xAFIzS718uOvxY8W_sn5Gwq4 Message-ID: Subject: Re: BPCHAR description in 8.3. Character Types is misleading and incomplete To: "David G. Johnston" Cc: Tom Lane , Jeff Davis , "pgsql-docs@lists.postgresql.org" 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 On Fri, Oct 17, 2025 at 1:08=E2=80=AFAM David G. Johnston wrote: > > > I=E2=80=99m just trying to phrase the documentation for bpchar so that th= e =E2=80=9Cbp=E2=80=9D, which stands for =E2=80=9Cblank-padded=E2=80=9D, is= justified. That's what I thought. Yes, unfortunately, bp stands for =E2=80=9Cblank-padded=E2=80=9D, but this name is wrong and misleading. I do= n't know why it was chosen, maybe it was actually considered as blank-padded at that time, maybe it was an attempt to avoid introducing a new keyword (an ancient curse that has ruined a lot of good ideas already). It doesn't matter, though. That was a mistake in my opinion, but we don't have to repeat it. There is no need to justify wrongs. An honest remark (footnote, tip, whatever) in documentation "Although BP in BPCHAR stands for 'blank-padded', no padding is actually performed for this type" would be far better. > > I do understand the terminology confusion with the verb padding. And see= why =E2=80=9Ctrimmed=E2=80=9D is actively confusing. The prose probably n= eeds to resolve this - and technically does from what I=E2=80=99m reading. > > You may wish to move on from critiquing my suggested changes and instead = propose something concrete of your own. Provide a third choice besides sta= tus-quo and my option. I already did this. It was my original request that started this discussion, and I suggested there, although more as a guide, "as-if-blank-trimmed" and "blank-ignoring". But then Jeff Davis prepared a patch and proposed "blank-insignificant" instead, which I support now (after that, I also suggested "blank-agnostic", but that was more of a joke). So, the third choice already exists, and there is even a patch implementing it. Of course, "blank-insignificant" is not perfect either, specifically, it's not immediately obvious that only trailing blanks are insignificant here. Perhaps a better term would be "trailing-blanks-insignificant", with or without hyphens. But in my opinion. both are much more appropriate and less misleading than either "blank-padded" or "blank-trimmed". > > Though I=E2=80=99m doubtful there is a nice precise hyphenated word to be= found here for =E2=80=9Ctreats any trailing spaces as being semantically i= nsignificant=E2=80=9D. Yes, but nobody requires us to use such a word here. We can use a few more words if needed. With best regards, Sergei Katkovskii