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 1piwYE-0005AE-Ap for pgsql-docs@arkaria.postgresql.org; Sun, 02 Apr 2023 12:11:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1piwYC-0001mM-PN for pgsql-docs@arkaria.postgresql.org; Sun, 02 Apr 2023 12:11:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1piwYC-0001mD-Hx for pgsql-docs@lists.postgresql.org; Sun, 02 Apr 2023 12:11:12 +0000 Received: from mout-u-107.mailbox.org ([80.241.59.207]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1piwY3-0007O2-QP for pgsql-docs@lists.postgresql.org; Sun, 02 Apr 2023 12:11:09 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-107.mailbox.org (Postfix) with ESMTPS id 4PqCXy6rjrz9sS5; Sun, 2 Apr 2023 14:10:58 +0200 (CEST) Date: Sun, 2 Apr 2023 14:10:58 +0200 (CEST) From: Erik Wienhold To: mdixon@plymouth.ac.uk, pgsql-docs@lists.postgresql.org Message-ID: <1033607900.522472.1680437458038@office.mailbox.org> In-Reply-To: <168030103185.632.13669298104803390697@wrigleys.postgresql.org> References: <168030103185.632.13669298104803390697@wrigleys.postgresql.org> Subject: Re: Correction: Postgres emum documentation 8.7.4 should read 63 characters (instead of bytes) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Rspamd-Queue-Id: 4PqCXy6rjrz9sS5 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 01/04/2023 00:17 CEST PG Doc comments form wrote: > > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/15/datatype-enum.html > Description: > > Postgres documentation, section 8.7.4 gives the limit on enum labels as 63 > bytes. > Testing this with an oversized string gives the following error: > SQL Error [42602]: ERROR: invalid enum label > Detail: Labels must be 63 characters or less. The documentation is correct. NAMEDATALEN is in bytes not characters. The error message was fixed to say bytes in v14. https://www.postgresql.org/message-id/flat/CAB8KJ%3DitZEJ7C9BacTHSYgeUysH4xx8wDiOnyppnSLyn6-g%2BBw%40mail.gmail.com -- Erik