pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Correction: Postgres emum documentation 8.7.4 should read 63 characters (instead of bytes)
2+ messages / 2 participants
[nested] [flat]

* Correction: Postgres emum documentation 8.7.4 should read 63 characters (instead of bytes)
@ 2023-03-31 22:17  PG Doc comments form <noreply@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: PG Doc comments form @ 2023-03-31 22:17 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: mdixon@plymouth.ac.uk

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.


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Correction: Postgres emum documentation 8.7.4 should read 63 characters (instead of bytes)
@ 2023-04-02 12:10  Erik Wienhold <ewie@ewie.name>
  parent: PG Doc comments form <noreply@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Erik Wienhold @ 2023-04-02 12:10 UTC (permalink / raw)
  To: mdixon@plymouth.ac.uk; pgsql-docs@lists.postgresql.org

> 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%4...

--
Erik





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2023-04-02 12:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-03-31 22:17 Correction: Postgres emum documentation 8.7.4 should read 63 characters (instead of bytes) PG Doc comments form <noreply@postgresql.org>
2023-04-02 12:10 ` Erik Wienhold <ewie@ewie.name>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox