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 1v97oy-00ALN8-IQ for pgsql-docs@arkaria.postgresql.org; Wed, 15 Oct 2025 20:10:04 +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 1v97ow-0086Oq-Cf for pgsql-docs@arkaria.postgresql.org; Wed, 15 Oct 2025 20:10:01 +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 1v97ow-0086Oi-0o for pgsql-docs@lists.postgresql.org; Wed, 15 Oct 2025 20:10:01 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v97os-002NxD-2m for pgsql-docs@lists.postgresql.org; Wed, 15 Oct 2025 20:10:00 +0000 Received: by mail-pj1-x102b.google.com with SMTP id 98e67ed59e1d1-33ba37b3ff7so245103a91.1 for ; Wed, 15 Oct 2025 13:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1760558996; x=1761163796; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=iXq1+wbz58SY2jrMMlFFMFjRuMmrHE1GkvExf9cimI4=; b=tvXCVHQoRxSQRHnHqCoHgiM99CYevFsMf33wakXeIdZsq2dvOR2huw9lTpmDT8cSSV wNUGLVcQyDk4IRNzM5BusvsQNl3m7lXPo8OvELx1Ha22zRzXqIJs3iK8NDDa6V7dmqwz 0Cdm/uQSdsZq/jcf2iOC1Oa59m0bKfv5bYB2/qWw8Bktse1k37ZyQrJL75dy78j/FsGC DsZxMHQJvejURRLNSwovh+Z23cw0qPHmDq9M4TmD1AWQ8NeqZLmiBxSglmcsPpuxuk2p xhZOZyEwZ2iD6+RS5df2Y+fBb2tSWGl5Hfk6AZ94m7eHJBdY7O0FxsohvNtYWe4TYLy0 qGAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760558996; x=1761163796; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=iXq1+wbz58SY2jrMMlFFMFjRuMmrHE1GkvExf9cimI4=; b=jmQ7Sk4q0wAx48GKD+tz5M4L1kHDFZEHMq3CHqG5Zz+AvGGx4TI0CDxGtaJBnHdzh6 SOVHVk7VsXXyD0Ym0WicK2xFDGg6ZtKZz2jejzVggEgP2cNwStM76tN5v14XV1V+I2y1 q3/cPuUinK3cXmNgUTvDrOJLs9OZvIC1Eh4dA2W76XaI3XI+A616izZ0+7AAxD3l3G9M z5BKlrza6FklXzv2OEN/aTtHuzG5J/52TrbNvlNmh7iX1xfLe3DJgDYJIfC/K2ehChsq SP53vYcCHT4C1jOaqW3N7xjBI2kzM7PZ5lPQCxwbkYHb9NfzhDd0jn0koipLqNTywsx2 J0Ng== X-Forwarded-Encrypted: i=1; AJvYcCXqOPpt2g3xDXwSU13sQ+zSbb1yRqdxgIRUFK75KbViGBVZ3g9MPxp2P/QHLCAWbOIKV2sJ3kupJYFv@lists.postgresql.org X-Gm-Message-State: AOJu0Yw7IW5wbpWrExkWgQ/5lJhQVVL4Wcg+Uo+7u2ZStJRxnkUgozmT 7e9Kz9L75bZGYcNhTctFpUP6F6oTKPZr3y5okNebyy6fCWRRH0hiTjmU/aNX+dXcpg== X-Gm-Gg: ASbGncuT2HSXKfCcB73X2DNVlDF/+fsvkYXCaJuoUEhmL0M2D3qtLd41EvVCmFPO3HE SUsbq4Xt26ytJLm9LIGdSdphADSTcmlicdurUfMTXI0ZfgXWdMhVonmrlrUrvdK1fQ4X3ALkwqT ehoP6d7vSdvXel16PRydMZNLyttJR+fl7dOJfkKa6qFbMGSDi55V+5IVSMZS3Ro4KZdJ+9ZRqXD VtAY0PELqI/5/ljIEqYdOfIq7ps9Cb8ibFfdEu+IEYcO3/fQ6769QSMlFna0qj6PbPvUoRu6dor ++uWWUUjXxniSEKkaXm++5Mv5Cn1BZEar0mRg/Wk3/vMeaawhaApFUEOgpTtE7bxGxhrmjuAaUD 4rX9eyA8Nf8idvM2kyNWaLkd/fCkH3MWpjMZRQsRlywFG9QmZbmAS9/Wpvf2j9/2PWhDVZlKIgM h7pohWL/A+NacJzcRE46lx4HD++MhxEd6uq62qXOC8kVeEqGCB+QH2zA== X-Google-Smtp-Source: AGHT+IF7I7f0ehvzlvrUfgmbqHWs5WpBM3STdhXGTWHvNS/fESjSG6/WiqRuyhwnA946gCakPjAmgA== X-Received: by 2002:a17:90a:de05:b0:32e:6111:40ab with SMTP id 98e67ed59e1d1-33b9e09013emr1057959a91.3.1760558996170; Wed, 15 Oct 2025 13:09:56 -0700 (PDT) Received: from jeff-ws-bridge.lan (c-24-7-19-3.hsd1.ca.comcast.net. [24.7.19.3]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-33ba9222d26sm77829a91.0.2025.10.15.13.09.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Oct 2025 13:09:55 -0700 (PDT) Message-ID: <8d0beabd164ad895c5af3614fcbe64343915d08d.camel@j-davis.com> Subject: Re: BPCHAR description in 8.3. Character Types is misleading and incomplete From: Jeff Davis To: Tom Lane Cc: skatkovsky@gmail.com, pgsql-docs@lists.postgresql.org Date: Wed, 15 Oct 2025 13:09:54 -0700 In-Reply-To: <1307875.1760556576@sss.pgh.pa.us> References: <176044409338.770.16064383081308443747@wrigleys.postgresql.org> <1307875.1760556576@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2025-10-15 at 15:29 -0400, Tom Lane wrote: > Jeff Davis writes: > > Please take a look at the attached patch. If you'd like your name > > included in the commit, please send it as you'd like it to appear. >=20 > I don't understand why any of these variants are better than the > original wording "blank-padded".=C2=A0 That has the non-negligible > advantage of corresponding to the type name, and furthermore > appears in many other places in our docs and source code. I don't have a strong opinion on the subject, but I'll explain the reasoning: "Padded" is confusing in the sense that it raises the question: "padded to what length?". Since bpchar doesn't have a specific length associated with it, then it's just taking the spaces that went into the type input function, which doesn't sound like "padding" in the same sense as CHAR(10). Regards, Jeff Davis