doc: document the maximum char/varchar length value
authorBruce Momjian
Wed, 31 Aug 2022 23:43:06 +0000 (19:43 -0400)
committerBruce Momjian
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 77c7b17e6a64413d6333b1c7995b7deaab0131fb..0e89b768c5dbb836c0428a57658d521239767315 100644 (file)
@@ -1177,6 +1177,8 @@ SELECT '52093.89'::money::numeric::float8;
     char(n) are aliases for character
     varying(n) and
     character(n), respectively.
+    If specified, the length must be greater than zero and cannot exceed
+    10485760.
     character without length specifier is equivalent to
     character(1). If character varying is used
     without length specifier, the type accepts strings of any size. The