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 847aaac1f6ecad5682986c1a74bdd736edf349a1..bba750909029e26a3674e4e43e854a3f94a1e1d0 100644 (file)
@@ -19,8 +19,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>