summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorBruce Momjian2022-08-31 23:43:06 +0000
committerBruce Momjian2022-08-31 23:43:06 +0000
commite0d0c87a4c717ff9e47d7b7e5a25071e46090eba (patch)
tree4aabaca90040791d9437dccfb459f93d844422c2 /doc/src
parent258c1af3a3f8d64bbb5c3d8a7528849fd08165d7 (diff)
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
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/datatype.sgml2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml
index 60b0e67c6ee..bc48006505e 100644
--- a/doc/src/sgml/datatype.sgml
+++ b/doc/src/sgml/datatype.sgml
@@ -1098,6 +1098,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