Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9392c40

Browse files
committed
Update CHAR().
1 parent 13437d1 commit 9392c40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/FAQ

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

22
Frequently Asked Questions (FAQ) for PostgreSQL
33

4-
Last updated: Sun Jan 12 09:58:38 EST 2003
4+
Last updated: Sun Jan 12 13:36:11 EST 2003
55

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

@@ -820,10 +820,10 @@
820820

821821
Type Internal Name Notes
822822
--------------------------------------------------
823-
"char" char 1 character
824-
CHAR(n) bpchar blank padded to the specified fixed length
825823
VARCHAR(n) varchar size specifies maximum length, no padding
824+
CHAR(n) bpchar blank padded to the specified fixed length
826825
TEXT text no specific upper limit on length
826+
"char" char one character
827827
BYTEA bytea variable-length byte array (null-byte safe)
828828

829829
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)
834834
space used is slightly greater than the declared size. However, these
835835
data types are also subject to compression or being stored out-of-line
836836
by TOAST, so the space on disk might also be less than expected.
837-
VARCHAR(n) is best when storing variable-length strings but it limits
837+
VARCHAR(n) is best when storing variable-length strings and it limits
838838
how long a string can be. TEXT is for strings of unlimited length,
839-
maximum 1 gigabyte.
839+
with a maximum of one gigabyte.
840840

841841
CHAR(n) is for storing strings that are all the same length. CHAR(n)
842842
pads with blanks to the specified length, while VARCHAR(n) only stores

0 commit comments

Comments
 (0)