aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2022-08-31 19:43:06 -0400
committerBruce Momjian <bruce@momjian.us>2022-08-31 19:43:06 -0400
commit716e3d18dd28ea75464c1ccc63f9a8aa41983203 (patch)
treecda78a4d3fe1fcc9aeb44c3d17ddaa8e775eaa58
parentccbae5fd8d3b23182ce208df4b3fd018db385e69 (diff)
downloadpostgresql-716e3d18dd28ea75464c1ccc63f9a8aa41983203.tar.gz
postgresql-716e3d18dd28ea75464c1ccc63f9a8aa41983203.zip
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
-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 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;
<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