Re: Correction: Postgres emum documentation 8.7.4 should read 63 characters (instead of bytes)

From: Erik Wienhold <ewie(at)ewie(dot)name>
To: mdixon(at)plymouth(dot)ac(dot)uk, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Correction: Postgres emum documentation 8.7.4 should read 63 characters (instead of bytes)
Date: 2023-04-02 12:10:58
Message-ID: 1033607900.522472.1680437458038@office.mailbox.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

> On 01/04/2023 00:17 CEST PG Doc comments form <noreply(at)postgresql(dot)org> 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

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2023-04-04 18:34:01 recovery from continuous-archiving
Previous Message PG Doc comments form 2023-03-31 22:17:11 Correction: Postgres emum documentation 8.7.4 should read 63 characters (instead of bytes)