Update FAQ.
authorBruce Momjian
Sat, 13 Oct 2001 01:32:47 +0000 (01:32 +0000)
committerBruce Momjian
Sat, 13 Oct 2001 01:32:47 +0000 (01:32 +0000)
doc/FAQ
doc/src/FAQ/FAQ.html

diff --git a/doc/FAQ b/doc/FAQ
index 72c208db15f7d774c7e7e70e0e740515c31fdd78..09ea0c98dbc86a6b5f0b692fbda0ee4c28e91976 100644 (file)
--- a/doc/FAQ
+++ b/doc/FAQ
@@ -1,7 +1,7 @@
 
                 Frequently Asked Questions (FAQ) for PostgreSQL
                                        
-   Last updated: Sat Sep 22 20:07:41 EDT 2001
+   Last updated: Fri Oct 12 21:32:36 EDT 2001
    
    Current maintainer: Bruce Momjian ([email protected])
    
@@ -790,6 +790,12 @@ BYTEA           bytea           variable-length byte array (null-safe)
    data types are also subject to compression or being stored out-of-line
    by TOAST, so the space on disk might also be less than expected.
    
+   CHAR() is best when storing strings that are usually the same length.
+   VARCHAR() is best when storing variable-length strings, but you want
+   to limit how long a string can be. TEXT is for strings of unlimited
+   length, maximum 1 gigabyte. BYTEA is for storing binary data,
+   particularly values that include NULL bytes.
+   
     4.16.1) How do I create a serial/auto-incrementing field?
     
    PostgreSQL supports a SERIAL data type. It auto-creates a sequence and
index 143bb65115a4ab0e796ab4f0bd68242126da7b55..ac94a0e0bb6eddd097def54cdea48e6fb2d429dc 100644 (file)
@@ -12,7 +12,7 @@
   alink="#0000FF">
     

Frequently Asked Questions (FAQ) for PostgreSQL

 
-    

Last updated: Sat Sep 22 20:07:41 EDT 2001

+    

Last updated: Fri Oct 12 21:32:36 EDT 2001

 
     

Current maintainer: Bruce Momjian (

@@ -1003,6 +1003,12 @@ BYTEA           bytea           variable-length byte array (null-safe)
     stored out-of-line by TOAST, so the space on disk
     might also be less than expected.

 
+    

CHAR() is best when storing strings that are usually the

+    same length.  VARCHAR() is best when storing variable-length strings,
+    but you want to limit how long a string can be.  TEXT is for strings
+    of unlimited length, maximum 1 gigabyte.  BYTEA is for storing
+    binary data, particularly values that include NULL bytes.

+    
     

4.16.1) How do I create a

     serial/auto-incrementing field?