Skip to content
Snippets Groups Projects
Commit 2b2cf392 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Update char/varchar()/text/bytea to mention they have similar performance

characteristics.
parent 06b29793
No related branches found
No related tags found
No related merge requests found
Frequently Asked Questions (FAQ) for PostgreSQL Frequently Asked Questions (FAQ) for PostgreSQL
Last updated: Thu Oct 17 19:33:40 EDT 2002 Last updated: Sat Oct 19 22:58:02 EDT 2002
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...@@ -848,7 +848,8 @@ BYTEA bytea variable-length byte array (null-byte safe) ...@@ -848,7 +848,8 @@ BYTEA bytea variable-length byte array (null-byte safe)
VARCHAR(n) is best when storing variable-length strings but it limits VARCHAR(n) is best when storing variable-length strings but 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. BYTEA is for storing binary data, particularly maximum 1 gigabyte. BYTEA is for storing binary data, particularly
values that include NULL bytes. values that include NULL bytes. These types have similar performance
characteristics.
4.15.1) How do I create a serial/auto-incrementing field? 4.15.1) How do I create a serial/auto-incrementing field?
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
alink="#0000ff"> alink="#0000ff">
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1> <H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
<P>Last updated: Thu Oct 17 19:33:40 EDT 2002</P> <P>Last updated: Sat Oct 19 22:58:02 EDT 2002</P>
<P>Current maintainer: Bruce Momjian (<A href= <P>Current maintainer: Bruce Momjian (<A href=
"mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR> "mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)<BR>
...@@ -1068,7 +1068,8 @@ BYTEA bytea variable-length byte array (null-byte safe) ...@@ -1068,7 +1068,8 @@ BYTEA bytea variable-length byte array (null-byte safe)
storing variable-length strings but it limits how long a string can storing variable-length strings but it limits how long a string can
be. <SMALL>TEXT</SMALL> is for strings of unlimited length, maximum be. <SMALL>TEXT</SMALL> is for strings of unlimited length, maximum
1 gigabyte. <SMALL>BYTEA</SMALL> is for storing binary data, 1 gigabyte. <SMALL>BYTEA</SMALL> is for storing binary data,
particularly values that include <SMALL>NULL</SMALL> bytes.</P> particularly values that include <SMALL>NULL</SMALL> bytes. These
types have similar performance characteristics.</P>
<H4><A name="4.15.1">4.15.1</A>) How do I create a <H4><A name="4.15.1">4.15.1</A>) How do I create a
serial/auto-incrementing field?</H4> serial/auto-incrementing field?</H4>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment