]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
doc: document the maximum char/varchar length value
authorBruce Momjian <bruce@momjian.us>
Wed, 31 Aug 2022 23:43:06 +0000 (19:43 -0400)
committerBruce Momjian <bruce@momjian.us>
Wed, 31 Aug 2022 23:43:06 +0000 (19:43 -0400)
Reported-by: Japin Li
Discussion: https://postgr.es/m/MEYP282MB1669B13E98AE531617CB1386B6979@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM

Backpatch-through: 10

doc/src/sgml/datatype.sgml

index a623d67d7c4e4d008899468c67601de47bf6c861..2c2a6333adf998934956d54c91dfe6a3c8be9fd7 100644 (file)
@@ -1134,6 +1134,8 @@ SELECT '52093.89'::money::numeric::float8;
     <type>char(<replaceable>n</replaceable>)</type> are aliases for <type>character
     varying(<replaceable>n</replaceable>)</type> and
     <type>character(<replaceable>n</replaceable>)</type>, respectively.
+    If specified, the length must be greater than zero and cannot exceed
+    10485760.
     <type>character</type> without length specifier is equivalent to
     <type>character(1)</type>. If <type>character varying</type> is used
     without length specifier, the type accepts strings of any size. The