Doc: correct misstatement about ltree label maximum length.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Mar 2020 22:54:19 +0000 (18:54 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Mar 2020 22:54:19 +0000 (18:54 -0400)
The documentation says that the max length is 255 bytes, but
code inspection says it's actually 255 characters; and relevant
lengths are stored as uint16 so that that works.

doc/src/sgml/ltree.sgml

index 0c74aa705e964804712a10ac0258a54f725fbc7a..2d539f23fd8fc86e76e9c0b00746d354db98d0a2 100644 (file)
@@ -25,8 +25,8 @@
   <para>
    A <firstterm>label</firstterm> is a sequence of alphanumeric characters
    and underscores (for example, in C locale the characters
-   <literal>A-Za-z0-9_</literal> are allowed).  Labels must be less than 256 bytes
-   long.
+   <literal>A-Za-z0-9_</literal> are allowed).
+   Labels must be less than 256 characters long.
   </para>
 
   <para>