From: Thomas G. Lockhart Date: Sun, 3 Dec 2000 14:47:18 +0000 (+0000) Subject: Clarify the allowed length of the text data type. X-Git-Tag: REL7_1_BETA~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1131261270e74dd8a7cf7a3e99c1f3c71175ebe9;p=postgresql Clarify the allowed length of the text data type. --- diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index e805d2beac..892b827b3b 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -1,5 +1,5 @@ @@ -497,9 +497,9 @@ CREATE TABLE tablename ( text - (4+length) bytes - Best choice - Variable-length + (4+n) bytes + Most flexible + Variable unlimited length varchar(n) @@ -513,11 +513,10 @@ CREATE TABLE tablename ( - There is one other fixed-length character type in Postgres. - The name type - only has one purpose and that is for storage of internal catalog - names. - It is not intended for use by the general user. + There is one other fixed-length character type in Postgres. + The name type exists only for + storage of internal catalog names and + is not intended for use by the general user. Its length is currently defined as 32 bytes (31 characters plus terminator) but should be reference using NAMEDATALEN. The length is set at compile time (and is therefore adjustable for