Re: wrong information about unlimied size of text field?
От
Peter Eisentraut
Тема
Re: wrong information about unlimied size of text field?
Дата
Msg-id
Pine.LNX.4.44.0209032032310.1157-100000@localhost.localdomain
Ответ на
wrong information about unlimied size of text field? (Hubert depesz Lubaczewski)
Список
Дерево обсуждения
wrong information about unlimied size of text field? Hubert depesz Lubaczewski <depesz@depesz.pl>
Re: wrong information about unlimied size of text field? Bruce Momjian <pgman@candle.pha.pa.us>
Re: wrong information about unlimied size of text field? Peter Eisentraut <peter_e@gmx.net>
Re: wrong information about unlimied size of text field? Hubert depesz Lubaczewski <depesz@depesz.pl>
Hubert depesz Lubaczewski writes:
> according to what i know, where is a limit for up to 2gigabytes of data
> in text fields (according to c.h).
> this limit is of course very big, but i belive it should be mentioned in
> datatype.sgml instead of saying:
If you continue reading you will find
The storage requirement for data of these types is 4 bytes plus
the actual string, and in case of character plus the
padding. Long strings will be compressed by the system
automatically, so the physical requirement on disk may be less.
In any case, the longest possible character string
that can be stored is about 1 GB. (The maximum value that will be
allowed for n</> 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.)
which seems to be the information you are looking for.
--
Peter Eisentraut peter_e@gmx.net
В списке pgsql-docs по дате отправления