mirror of
https://github.com/postgres/postgres.git
synced 2025-08-06 18:42:54 +03:00
Update CHAR().
This commit is contained in:
10
doc/FAQ
10
doc/FAQ
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
Frequently Asked Questions (FAQ) for PostgreSQL
|
Frequently Asked Questions (FAQ) for PostgreSQL
|
||||||
|
|
||||||
Last updated: Sun Jan 12 09:58:38 EST 2003
|
Last updated: Sun Jan 12 13:36:11 EST 2003
|
||||||
|
|
||||||
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
|
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
|
||||||
|
|
||||||
@@ -820,10 +820,10 @@
|
|||||||
|
|
||||||
Type Internal Name Notes
|
Type Internal Name Notes
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
"char" char 1 character
|
|
||||||
CHAR(n) bpchar blank padded to the specified fixed length
|
|
||||||
VARCHAR(n) varchar size specifies maximum length, no padding
|
VARCHAR(n) varchar size specifies maximum length, no padding
|
||||||
|
CHAR(n) bpchar blank padded to the specified fixed length
|
||||||
TEXT text no specific upper limit on length
|
TEXT text no specific upper limit on length
|
||||||
|
"char" char one character
|
||||||
BYTEA bytea variable-length byte array (null-byte safe)
|
BYTEA bytea variable-length byte array (null-byte safe)
|
||||||
|
|
||||||
You will see the internal name when examining system catalogs and in
|
You will see the internal name when examining system catalogs and in
|
||||||
@@ -834,9 +834,9 @@ BYTEA bytea variable-length byte array (null-byte safe)
|
|||||||
space used is slightly greater than the declared size. However, these
|
space used is slightly greater than the declared size. However, these
|
||||||
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.
|
||||||
VARCHAR(n) is best when storing variable-length strings but it limits
|
VARCHAR(n) is best when storing variable-length strings and it limits
|
||||||
how long a string can be. TEXT is for strings of unlimited length,
|
how long a string can be. TEXT is for strings of unlimited length,
|
||||||
maximum 1 gigabyte.
|
with a maximum of one gigabyte.
|
||||||
|
|
||||||
CHAR(n) is for storing strings that are all the same length. CHAR(n)
|
CHAR(n) is for storing strings that are all the same length. CHAR(n)
|
||||||
pads with blanks to the specified length, while VARCHAR(n) only stores
|
pads with blanks to the specified length, while VARCHAR(n) only stores
|
||||||
|
Reference in New Issue
Block a user