From: Bruce Momjian Date: Wed, 31 Aug 2022 23:43:06 +0000 (-0400) Subject: doc: document the maximum char/varchar length value X-Git-Tag: REL_13_9~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=716e3d18dd28ea75464c1ccc63f9a8aa41983203;p=thirdparty%2Fpostgresql.git doc: document the maximum char/varchar length value Reported-by: Japin Li Discussion: https://postgr.es/m/MEYP282MB1669B13E98AE531617CB1386B6979@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM Backpatch-through: 10 --- diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index a623d67d7c4..2c2a6333adf 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1134,6 +1134,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