Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
fc9b6451
Commit
fc9b6451
authored
19 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Update disk space computation because oids are now optional.
parent
14720f7c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/FAQ
+8
-8
8 additions, 8 deletions
doc/FAQ
doc/src/FAQ/FAQ.html
+8
-8
8 additions, 8 deletions
doc/src/FAQ/FAQ.html
with
16 additions
and
16 deletions
doc/FAQ
+
8
−
8
View file @
fc9b6451
Frequently Asked Questions (FAQ) for PostgreSQL
Last updated: Thu
Aug 11 09:21
:5
8
EDT 2005
Last updated: Thu
Sep 1 12:17
:5
2
EDT 2005
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...
...
@@ -489,23 +489,23 @@
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:
3
2 bytes: each row header (approximate)
2
8
bytes: each row header (approximate)
24 bytes: one int field and one text field
+ 4 bytes: pointer on page to tuple
----------------------------------------
6
0
bytes per row
5
6 bytes per row
The data page size in PostgreSQL is 8192 bytes (8 KB), so:
8192 bytes per page
------------------- = 1
3
6 rows per database page (rounded down)
6
0
bytes per row
------------------- = 1
4
6 rows per database page (rounded down)
5
6 bytes per row
100000 data rows
-------------------- =
73
5 database pages (rounded up)
1
28
rows per page
-------------------- =
68
5 database pages (rounded up)
1
46
rows per page
73
5 database pages * 8192 bytes per page =
6,021,1
20 bytes (6 MB)
68
5 database pages * 8192 bytes per page =
5,611,5
20 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.
...
...
This diff is collapsed.
Click to expand it.
doc/src/FAQ/FAQ.html
+
8
−
8
View file @
fc9b6451
...
...
@@ -10,7 +10,7 @@
alink=
"#0000ff"
>
<H1>
Frequently Asked Questions (FAQ) for PostgreSQL
</H1>
<P>
Last updated: Thu
Aug 11 09:21
:5
8
EDT 2005
</P>
<P>
Last updated: Thu
Sep 1 12:17
:5
2
EDT 2005
</P>
<P>
Current maintainer: Bruce Momjian (
<A
href=
"mailto:pgman@candle.pha.pa.us"
>
pgman@candle.pha.pa.us
</A>
)
...
...
@@ -635,23 +635,23 @@ table?</TD><TD>unlimited</TD></TR>
The size of the PostgreSQL database file containing this data can
be estimated as 6.4 MB:
</P>
<PRE>
3
2 bytes: each row header (approximate)
2
8
bytes: each row header (approximate)
24 bytes: one int field and one text field
+ 4 bytes: pointer on page to tuple
----------------------------------------
6
0
bytes per row
5
6 bytes per row
The data page size in PostgreSQL is 8192 bytes (8 KB), so:
8192 bytes per page
------------------- = 1
3
6 rows per database page (rounded down)
6
0
bytes per row
------------------- = 1
4
6 rows per database page (rounded down)
5
6 bytes per row
100000 data rows
-------------------- =
73
5 database pages (rounded up)
1
28
rows per page
-------------------- =
68
5 database pages (rounded up)
1
46
rows per page
73
5 database pages * 8192 bytes per page =
6,021,1
20 bytes (6 MB)
68
5 database pages * 8192 bytes per page =
5,611,5
20 bytes (
5.
6 MB)
</PRE>
<P>
Indexes do not require as much overhead, but do contain the data
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment