Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
865d26fd
Commit
865d26fd
authored
Feb 18, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update FAQ.
parent
ab604e8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
21 deletions
+21
-21
doc/FAQ
doc/FAQ
+11
-11
doc/src/FAQ/FAQ.html
doc/src/FAQ/FAQ.html
+10
-10
No files found.
doc/FAQ
View file @
865d26fd
Frequently Asked Questions (FAQ) for PostgreSQL
Last updated:
Thu Feb 14 12:14:47
EST 2002
Last updated:
Mon Feb 18 00:08:54
EST 2002
Current maintainer: Bruce Momjian (pgman@candle.pha.pa.us)
...
...
@@ -667,26 +667,26 @@
As an example, consider a file of 100,000 lines with an integer and
text description on each line. Suppose the text string avergages
twenty
characters in length. The flat file would be 2.8 MB. The siz
e
of the PostgreSQL database file containing this data can be estimated
as 6.6
MB:
twenty
bytes in length. The flat file would be 2.8 MB. The size of th
e
PostgreSQL database file containing this data can be estimated as 6.4
MB:
36 bytes: each row header (approximate)
2
6 bytes: two int fields @ 4 bytes each
2
4 bytes: one int field and one text filed
+ 4 bytes: pointer on page to tuple
----------------------------------------
6
6
bytes per row
6
4
bytes per row
The data page size in PostgreSQL is 8192 bytes (8 KB), so:
8192 bytes per page
------------------- = 12
4
rows per database page (rounded down)
6
6
bytes per row
------------------- = 12
8
rows per database page (rounded down)
6
4
bytes per row
100000 data rows
-------------------- =
807
database pages (rounded up)
12
4
rows per page
-------------------- =
782
database pages (rounded up)
12
8
rows per page
807 database pages * 8192 bytes per page = 6,610,944 bytes (6.6
MB)
782 database pages * 8192 bytes per page = 6,406,144 bytes (6.4
MB)
Indexes do not require as much overhead, but do contain the data that
is being indexed, so they can be large also.
...
...
doc/src/FAQ/FAQ.html
View file @
865d26fd
...
...
@@ -14,7 +14,7 @@
alink=
"#0000ff"
>
<H1>
Frequently Asked Questions (FAQ) for PostgreSQL
</H1>
<P>
Last updated:
Thu Feb 14 12:14:47
EST 2002
</P>
<P>
Last updated:
Mon Feb 18 00:08:54
EST 2002
</P>
<P>
Current maintainer: Bruce Momjian (
<A
href=
"mailto:pgman@candle.pha.pa.us"
>
pgman@candle.pha.pa.us
</A>
)
<BR>
...
...
@@ -855,27 +855,27 @@
<P>
As an example, consider a file of 100,000 lines with an integer
and text description on each line. Suppose the text string avergages
twenty
character
s in length. The flat file would be 2.8 MB. The size
twenty
byte
s 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.
6
MB:
</P>
estimated as 6.
4
MB:
</P>
<PRE>
36 bytes: each row header (approximate)
2
6 bytes: two int fields @ 4 bytes each
2
4 bytes: one int field and one text filed
+ 4 bytes: pointer on page to tuple
----------------------------------------
6
6
bytes per row
6
4
bytes per row
The data page size in PostgreSQL is 8192 bytes (8 KB), so:
8192 bytes per page
------------------- = 12
4
rows per database page (rounded down)
6
6
bytes per row
------------------- = 12
8
rows per database page (rounded down)
6
4
bytes per row
100000 data rows
-------------------- =
807
database pages (rounded up)
12
4
rows per page
-------------------- =
782
database pages (rounded up)
12
8
rows per page
807 database pages * 8192 bytes per page = 6,610,944 bytes (6.6
MB)
782 database pages * 8192 bytes per page = 6,406,144 bytes (6.4
MB)
</PRE>
<P>
Indexes do not require as much overhead, but do contain the data
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment