mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
Update FAQ.
This commit is contained in:
8
doc/FAQ
8
doc/FAQ
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Frequently Asked Questions (FAQ) for PostgreSQL
|
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 (pgman@candle.pha.pa.us)
|
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
|
||||||
|
|
||||||
@ -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
|
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.
|
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?
|
4.16.1) How do I create a serial/auto-incrementing field?
|
||||||
|
|
||||||
PostgreSQL supports a SERIAL data type. It auto-creates a sequence and
|
PostgreSQL supports a SERIAL data type. It auto-creates a sequence and
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
alink="#0000FF">
|
alink="#0000FF">
|
||||||
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
|
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
|
||||||
|
|
||||||
<P>Last updated: Sat Sep 22 20:07:41 EDT 2001</P>
|
<P>Last updated: Fri Oct 12 21:32:36 EDT 2001</P>
|
||||||
|
|
||||||
<P>Current maintainer: Bruce Momjian (<A href=
|
<P>Current maintainer: Bruce Momjian (<A href=
|
||||||
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
|
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
|
||||||
@ -1003,6 +1003,12 @@ BYTEA bytea variable-length byte array (null-safe)
|
|||||||
stored out-of-line by <SMALL>TOAST</SMALL>, so the space on disk
|
stored out-of-line by <SMALL>TOAST</SMALL>, so the space on disk
|
||||||
might also be less than expected.</P>
|
might also be less than expected.</P>
|
||||||
|
|
||||||
|
<P>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.</P>
|
||||||
|
|
||||||
<H4><A name="4.16.1">4.16.1</A>) How do I create a
|
<H4><A name="4.16.1">4.16.1</A>) How do I create a
|
||||||
serial/auto-incrementing field?</H4>
|
serial/auto-incrementing field?</H4>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user