Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 716e3d1

Browse files
committed
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
1 parent ccbae5f commit 716e3d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/src/sgml/datatype.sgml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,8 @@ SELECT '52093.89'::money::numeric::float8;
11341134
<type>char(<replaceable>n</replaceable>)</type> are aliases for <type>character
11351135
varying(<replaceable>n</replaceable>)</type> and
11361136
<type>character(<replaceable>n</replaceable>)</type>, respectively.
1137+
If specified, the length must be greater than zero and cannot exceed
1138+
10485760.
11371139
<type>character</type> without length specifier is equivalent to
11381140
<type>character(1)</type>. If <type>character varying</type> is used
11391141
without length specifier, the type accepts strings of any size. The

0 commit comments

Comments
 (0)