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.
> 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. https://www.postgresql.org/message-id/flat/CAB8KJ%3DitZEJ7C9BacTHSYgeUysH4xx8wDiOnyppnSLyn6-g%2BBw%40mail.gmail.com -- Erik
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера