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

Started by PG Bug reporting formabout 3 years ago2 messagesdocs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

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.

#2Erik Wienhold
ewie@ewie.name
In reply to: PG Bug reporting form (#1)
Re: Correction: Postgres emum documentation 8.7.4 should read 63 characters (instead of bytes)

On 01/04/2023 00:17 CEST PG Doc comments form <noreply@postgresql.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.

/messages/by-id/CAB8KJ=itZEJ7C9BacTHSYgeUysH4xx8wDiOnyppnSLyn6-g+Bw@mail.gmail.com

--
Erik