File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 1
1
2
2
Frequently Asked Questions (FAQ) for PostgreSQL
3
3
4
- Last updated: Thu Aug 11 09:21:58 EDT 2005
4
+ Last updated: Thu Sep 1 12:17:52 EDT 2005
5
5
6
6
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
7
7
489
489
twenty bytes in length. The flat file would be 2.8 MB. The size of the
490
490
PostgreSQL database file containing this data can be estimated as 6.4
491
491
MB:
492
- 32 bytes: each row header (approximate)
492
+ 28 bytes: each row header (approximate)
493
493
24 bytes: one int field and one text field
494
494
+ 4 bytes: pointer on page to tuple
495
495
----------------------------------------
496
- 60 bytes per row
496
+ 56 bytes per row
497
497
498
498
The data page size in PostgreSQL is 8192 bytes (8 KB), so:
499
499
500
500
8192 bytes per page
501
- ------------------- = 136 rows per database page (rounded down)
502
- 60 bytes per row
501
+ ------------------- = 146 rows per database page (rounded down)
502
+ 56 bytes per row
503
503
504
504
100000 data rows
505
- -------------------- = 735 database pages (rounded up)
506
- 128 rows per page
505
+ -------------------- = 685 database pages (rounded up)
506
+ 146 rows per page
507
507
508
- 735 database pages * 8192 bytes per page = 6,021,120 bytes (6 MB)
508
+ 685 database pages * 8192 bytes per page = 5,611,520 bytes (5. 6 MB)
509
509
510
510
Indexes do not require as much overhead, but do contain the data that
511
511
is being indexed, so they can be large also.
Original file line number Diff line number Diff line change 10
10
alink ="#0000ff ">
11
11
< H1 > Frequently Asked Questions (FAQ) for PostgreSQL</ H1 >
12
12
13
- < P > Last updated: Thu Aug 11 09:21:58 EDT 2005</ P >
13
+ < P > Last updated: Thu Sep 1 12:17:52 EDT 2005</ P >
14
14
15
15
< P > Current maintainer: Bruce Momjian (< A href =
16
16
"mailto:pgman@candle.pha.pa.us "> pgman@candle.pha.pa.us</ A > )
@@ -635,23 +635,23 @@ <H3><A name="4.5">4.5</A>) How much database disk space is required
635
635
The size of the PostgreSQL database file containing this data can
636
636
be estimated as 6.4 MB:</ P >
637
637
< PRE >
638
- 32 bytes: each row header (approximate)
638
+ 28 bytes: each row header (approximate)
639
639
24 bytes: one int field and one text field
640
640
+ 4 bytes: pointer on page to tuple
641
641
----------------------------------------
642
- 60 bytes per row
642
+ 56 bytes per row
643
643
644
644
The data page size in PostgreSQL is 8192 bytes (8 KB), so:
645
645
646
646
8192 bytes per page
647
- ------------------- = 136 rows per database page (rounded down)
648
- 60 bytes per row
647
+ ------------------- = 146 rows per database page (rounded down)
648
+ 56 bytes per row
649
649
650
650
100000 data rows
651
- -------------------- = 735 database pages (rounded up)
652
- 128 rows per page
651
+ -------------------- = 685 database pages (rounded up)
652
+ 146 rows per page
653
653
654
- 735 database pages * 8192 bytes per page = 6,021,120 bytes (6 MB)
654
+ 685 database pages * 8192 bytes per page = 5,611,520 bytes (5. 6 MB)
655
655
</ PRE >
656
656
657
657
< P > Indexes do not require as much overhead, but do contain the data
You can’t perform that action at this time.
0 commit comments