Update disk space computation because oids are now optional.
authorBruce Momjian
Thu, 1 Sep 2005 16:18:08 +0000 (16:18 +0000)
committerBruce Momjian
Thu, 1 Sep 2005 16:18:08 +0000 (16:18 +0000)
doc/FAQ
doc/src/FAQ/FAQ.html

diff --git a/doc/FAQ b/doc/FAQ
index 23994765bf42d4c37f019961d6998cb431da8889..dae4beef81d9cb901bfd906204e9db49862bd10c 100644 (file)
--- a/doc/FAQ
+++ b/doc/FAQ
@@ -1,7 +1,7 @@
 
                 Frequently Asked Questions (FAQ) for PostgreSQL
                                        
-   Last updated: Thu Aug 11 09:21:58 EDT 2005
+   Last updated: Thu Sep 1 12:17:52 EDT 2005
    
    Current maintainer: Bruce Momjian ([email protected])
    
    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
    MB:
-    32 bytes: each row header (approximate)
+    28 bytes: each row header (approximate)
     24 bytes: one int field and one text field
    + 4 bytes: pointer on page to tuple
    ----------------------------------------
-    60 bytes per row
+    56 bytes per row
 
    The data page size in PostgreSQL is 8192 bytes (8 KB), so:
 
    8192 bytes per page
-   -------------------   =  136 rows per database page (rounded down)
-     60 bytes per row
+   -------------------   =  146 rows per database page (rounded down)
+     56 bytes per row
 
    100000 data rows
-   --------------------  =  735 database pages (rounded up)
-      128 rows per page
+   --------------------  =  685 database pages (rounded up)
+      146 rows per page
 
-735 database pages * 8192 bytes per page  =  6,021,120 bytes (6 MB)
+685 database pages * 8192 bytes per page  =  5,611,520 bytes (5.6 MB)
 
    Indexes do not require as much overhead, but do contain the data that
    is being indexed, so they can be large also.
index 2d46904eb323b0da83e0a4272f142945560cbc7a..d1e8af9f1e094f71e72c1bf673fa6b8a6212cd18 100644 (file)
@@ -10,7 +10,7 @@
   alink="#0000ff">
     

Frequently Asked Questions (FAQ) for PostgreSQL

 
-    

Last updated: Thu Aug 11 09:21:58 EDT 2005

+    

Last updated: Thu Sep  1 12:17:52 EDT 2005

 
     

Current maintainer: Bruce Momjian (

@@ -635,23 +635,23 @@ table?unlimited
     The size of the PostgreSQL database file containing this data can
     be estimated as 6.4 MB:

 
-    32 bytes: each row header (approximate)
+    28 bytes: each row header (approximate)
     24 bytes: one int field and one text field
    + 4 bytes: pointer on page to tuple
    ----------------------------------------
-    60 bytes per row
+    56 bytes per row
 
    The data page size in PostgreSQL is 8192 bytes (8 KB), so:
 
    8192 bytes per page
-   -------------------   =  136 rows per database page (rounded down)
-     60 bytes per row
+   -------------------   =  146 rows per database page (rounded down)
+     56 bytes per row
 
    100000 data rows
-   --------------------  =  735 database pages (rounded up)
-      128 rows per page
+   --------------------  =  685 database pages (rounded up)
+      146 rows per page
 
-735 database pages * 8192 bytes per page  =  6,021,120 bytes (6 MB)
+685 database pages * 8192 bytes per page  =  5,611,520 bytes (5.6 MB)
 
 
     

Indexes do not require as much overhead, but do contain the data