Skip to content

Commit cdd4379

Browse files
committed
Update FAQ.
1 parent 0818073 commit cdd4379

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

doc/FAQ

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Frequently Asked Questions (FAQ) for PostgreSQL
33

4-
Last updated: Sat Sep 22 20:07:41 EDT 2001
4+
Last updated: Fri Oct 12 21:32:36 EDT 2001
55

66
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
77

@@ -790,6 +790,12 @@ BYTEA bytea variable-length byte array (null-safe)
790790
data types are also subject to compression or being stored out-of-line
791791
by TOAST, so the space on disk might also be less than expected.
792792

793+
CHAR() is best when storing strings that are usually the same length.
794+
VARCHAR() is best when storing variable-length strings, but you want
795+
to limit how long a string can be. TEXT is for strings of unlimited
796+
length, maximum 1 gigabyte. BYTEA is for storing binary data,
797+
particularly values that include NULL bytes.
798+
793799
4.16.1) How do I create a serial/auto-incrementing field?
794800

795801
PostgreSQL supports a SERIAL data type. It auto-creates a sequence and

doc/src/FAQ/FAQ.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
alink="#0000FF">
1313
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
1414

15-
<P>Last updated: Sat Sep 22 20:07:41 EDT 2001</P>
15+
<P>Last updated: Fri Oct 12 21:32:36 EDT 2001</P>
1616

1717
<P>Current maintainer: Bruce Momjian (<A href=
1818
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
@@ -1003,6 +1003,12 @@ <H4><A name="4.15">4.15</A>) What is the difference between the
10031003
stored out-of-line by <SMALL>TOAST</SMALL>, so the space on disk
10041004
might also be less than expected.</P>
10051005

1006+
<P>CHAR() is best when storing strings that are usually the
1007+
same length. VARCHAR() is best when storing variable-length strings,
1008+
but you want to limit how long a string can be. TEXT is for strings
1009+
of unlimited length, maximum 1 gigabyte. BYTEA is for storing
1010+
binary data, particularly values that include NULL bytes.</P>
1011+
10061012
<H4><A name="4.16.1">4.16.1</A>) How do I create a
10071013
serial/auto-incrementing field?</H4>
10081014

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy