Commit 8c71af13 authored by Bruce Momjian's avatar Bruce Momjian

Fix computation of sample table size.

parent 8e897283
Frequently Asked Questions (FAQ) for PostgreSQL Frequently Asked Questions (FAQ) for PostgreSQL
Last updated: Fri Feb 24 09:59:35 EST 2006 Last updated: Fri Feb 24 23:28:40 EST 2006
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us) Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...@@ -524,7 +524,7 @@ ...@@ -524,7 +524,7 @@
As an example, consider a file of 100,000 lines with an integer and As an example, consider a file of 100,000 lines with an integer and
text description on each line. Suppose the text string avergages text description on each line. Suppose the text string avergages
twenty bytes in length. The flat file would be 2.8 MB. The size of the twenty bytes in length. The flat file would be 2.8 MB. The size of the
PostgreSQL database file containing this data can be estimated as 6.4 PostgreSQL database file containing this data can be estimated as 5.6
MB: MB:
28 bytes: each row header (approximate) 28 bytes: each row header (approximate)
24 bytes: one int field and one text field 24 bytes: one int field and one text field
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
alink="#0000ff"> alink="#0000ff">
<H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1> <H1>Frequently Asked Questions (FAQ) for PostgreSQL</H1>
<P>Last updated: Fri Feb 24 09:59:35 EST 2006</P> <P>Last updated: Fri Feb 24 23:28:40 EST 2006</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>) "mailto:pgman@candle.pha.pa.us">pgman@candle.pha.pa.us</A>)
...@@ -692,7 +692,7 @@ table?</TD><TD>unlimited</TD></TR> ...@@ -692,7 +692,7 @@ table?</TD><TD>unlimited</TD></TR>
and text description on each line. Suppose the text string and text description on each line. Suppose the text string
avergages twenty bytes in length. The flat file would be 2.8 MB. avergages twenty bytes in length. The flat file would be 2.8 MB.
The size of the PostgreSQL database file containing this data can The size of the PostgreSQL database file containing this data can
be estimated as 6.4 MB:</P> be estimated as 5.6 MB:</P>
<PRE> <PRE>
28 bytes: each row header (approximate) 28 bytes: each row header (approximate)
24 bytes: one int field and one text field 24 bytes: one int field and one text field
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment