解决方法
…
In any case,the longest possible
character string that can be stored is
about 1 GB. (The maximum value that
will be allowed forn
in the data type
declaration is less than that. It
wouldn’t be very useful to change this
because with multibyte character
encodings the number of characters and
bytes can be quite different anyway.
If you desire to store long strings
with no specific upper limit,use text
or character varying without a length
specifier,rather than making up an
arbitrary length limit.)
另请注意:
Tip: There is no performance difference among these three types,apart from increased storage space when using the blank-padded type,and a few extra cpu cycles to check the length when storing into a length-constrained column. While character(n) has performance advantages in some other database systems,there is no such advantage in Postgresql; in fact character(n) is usually the slowest of the three because of its additional storage costs. In most situations text or character varying should be used instead.