1
1
2
2
Frequently Asked Questions (FAQ) for PostgreSQL
3
3
4
- Last updated: Sun Jan 12 09:58:38 EST 2003
4
+ Last updated: Sun Jan 12 13:36:11 EST 2003
5
5
6
6
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
7
7
820
820
821
821
Type Internal Name Notes
822
822
--------------------------------------------------
823
- "char" char 1 character
824
- CHAR(n) bpchar blank padded to the specified fixed length
825
823
VARCHAR(n) varchar size specifies maximum length, no padding
824
+ CHAR(n) bpchar blank padded to the specified fixed length
826
825
TEXT text no specific upper limit on length
826
+ "char" char one character
827
827
BYTEA bytea variable-length byte array (null-byte safe)
828
828
829
829
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)
834
834
space used is slightly greater than the declared size. However, these
835
835
data types are also subject to compression or being stored out-of-line
836
836
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
838
838
how long a string can be. TEXT is for strings of unlimited length,
839
- maximum 1 gigabyte.
839
+ with a maximum of one gigabyte.
840
840
841
841
CHAR(n) is for storing strings that are all the same length. CHAR(n)
842
842
pads with blanks to the specified length, while VARCHAR(n) only stores
0 commit comments