mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Clarify the allowed length of the text data type.
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
				
			|||||||
<!--
 | 
					<!--
 | 
				
			||||||
$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.42 2000/11/16 06:03:40 momjian Exp $
 | 
					$Header: /cvsroot/pgsql/doc/src/sgml/datatype.sgml,v 1.43 2000/12/03 14:47:18 thomas Exp $
 | 
				
			||||||
-->
 | 
					-->
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 <chapter id="datatype">
 | 
					 <chapter id="datatype">
 | 
				
			||||||
@@ -497,9 +497,9 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl
 | 
				
			|||||||
       </row>
 | 
					       </row>
 | 
				
			||||||
       <row>
 | 
					       <row>
 | 
				
			||||||
	<entry>text</entry>
 | 
						<entry>text</entry>
 | 
				
			||||||
	<entry>(4+length) bytes</entry>
 | 
						<entry>(4+n) bytes</entry>
 | 
				
			||||||
	<entry>Best choice</entry>
 | 
						<entry>Most flexible</entry>
 | 
				
			||||||
	<entry>Variable-length</entry>
 | 
						<entry>Variable unlimited length</entry>
 | 
				
			||||||
       </row>
 | 
					       </row>
 | 
				
			||||||
       <row>
 | 
					       <row>
 | 
				
			||||||
	<entry>varchar(n)</entry>
 | 
						<entry>varchar(n)</entry>
 | 
				
			||||||
@@ -514,10 +514,9 @@ CREATE TABLE <replaceable class="parameter">tablename</replaceable> (<replaceabl
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
   <para>
 | 
					   <para>
 | 
				
			||||||
    There is one other fixed-length character type in <productname>Postgres</productname>.
 | 
					    There is one other fixed-length character type in <productname>Postgres</productname>.
 | 
				
			||||||
    The <type>name</type> type
 | 
					    The <type>name</type> type exists <emphasis>only</emphasis> for
 | 
				
			||||||
    only has one purpose and that is for storage of internal catalog
 | 
					    storage of internal catalog names and
 | 
				
			||||||
    names.
 | 
					    is not intended for use by the general user.
 | 
				
			||||||
    It is not intended for use by the general user.
 | 
					 | 
				
			||||||
    Its length is currently defined as 32 bytes (31 characters plus terminator) 
 | 
					    Its length is currently defined as 32 bytes (31 characters plus terminator) 
 | 
				
			||||||
    but should be reference using NAMEDATALEN.
 | 
					    but should be reference using NAMEDATALEN.
 | 
				
			||||||
    The length is set at compile time (and is therefore adjustable for
 | 
					    The length is set at compile time (and is therefore adjustable for
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user