@@ -534,7 +534,7 @@ <H4><A NAME="2.3">2.3</A>) Does PostgreSQL have a graphical user interface?
534
534
535
535
We have a nice graphical user interface called < I > pgaccess,</ I > which is
536
536
shipped as part of the distribution. < I > Pgaccess</ I > also has a report
537
- generator. The Web page is < A HREF =
537
+ generator. The Web page is < A HREF =""
538
538
"http://www.flex.ro/pgaccess"> http://www.flex.ro/pgaccess</ A > < P >
539
539
540
540
We also include < I > ecpg,</ I > which is an embedded SQL query language interface for
@@ -996,20 +996,18 @@ <H4><A NAME="4.15">4.15</A>) What is the difference between the
996
996
"char" char 1 character
997
997
CHAR(#) bpchar blank padded to the specified fixed length
998
998
VARCHAR(#) varchar size specifies maximum length, no padding
999
- TEXT text length limited only by maximum row length
1000
- BYTEA bytea variable-length array of bytes
999
+ TEXT text no specific upper limit on length
1000
+ BYTEA bytea variable-length byte array (null-safe)
1001
1001
</ PRE > < P >
1002
1002
1003
1003
You will see the internal name when examining system catalogs
1004
1004
and in some error messages.< P >
1005
-
1006
- The last four types above are "varlena" types (i.e., the first four bytes
1007
- are the length, followed by the data). < I > char(#)</ I > allocates the
1008
- maximum number of bytes no matter how much data is stored in the field.
1009
- < I > text, varchar(#),</ I > and < I > bytea</ I > all have variable length on the disk,
1010
- and because of this, there is a small performance penalty for using
1011
- them. Specifically, the penalty is for access to all columns after the
1012
- first column of this type.< P >
1005
+
1006
+ The last four types above are "varlena" types (i.e., the first four
1007
+ bytes on disk are the length, followed by the data). Thus the actual
1008
+ space used is slightly greater than the declared size. However, these
1009
+ data types are also subject to compression or being stored out-of-line
1010
+ by TOAST, so the space on disk might also be less than expected.< P >
1013
1011
1014
1012
1015
1013
< H4 > < A NAME ="4.16.1 "> 4.16.1</ A > ) How do I create a
0 commit comments