Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcdd4379

Browse files
committed
Update FAQ.
1 parent0818073 commitcdd4379

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 (<Ahref=
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><Aname="4.16.1">4.16.1</A>) How do I create a
10071013
serial/auto-incrementing field?</H4>
10081014

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp