Thread: Database size, and table size
Hi.
I wondering about file size of a table.
The table has 43000 pages and in documentation is say's its around 8kb.
It makes it supose to be around 336Mb on disk.
The table is simple just:
org_no varchar (12)
Name varachar(225)
But when i create a tablespace on a mfs disk and just loads the data on to the new table (with no index)
The file on the disk increase to more the 500MB and a few seconds later the machine crach.
If i input only 1Milion it's okay but 4 milion is not okay.
What does i not understand about tablespaces and the space a 8.0.4 postgresql takes on a frebsd5.4 ?????
/Roger
On 10/22/05, Roger Strandberg / Hamsta <roger.strandberg@hamsta.se> wrote:
dont wonder :) install dbsize module from postgresql contrib, and check.
depesz
I wondering about file size of a table.
dont wonder :) install dbsize module from postgresql contrib, and check.
depesz
Okay i did so, result:
html_slave=# select pg_size_pretty(relation_size('quick_search'));
pg_size_pretty
----------------
490 MB
(1 row)
pg_size_pretty
----------------
490 MB
(1 row)
html_slave=# select pg_size_pretty(relation_size('html_company'));
pg_size_pretty
----------------
1567 MB
(1 row)
pg_size_pretty
----------------
1567 MB
(1 row)
html_slave=# select pg_size_pretty(database_size('html_slave'));
pg_size_pretty
----------------
4120 MB
(1 row)
pg_size_pretty
----------------
4120 MB
(1 row)
Okay the quic_search_table is aroun 490, but then i need to ask why does the machine reboot when i only make use of 510MB of the 2.8G mfs disk. .....
I need to mail freebsd then.
/R
----- Original Message -----Sent: Saturday, October 22, 2005 8:05 AMSubject: Re: [ADMIN] Database size, and table sizeOn 10/22/05, Roger Strandberg / Hamsta <roger.strandberg@hamsta.se> wrote:I wondering about file size of a table.
dont wonder :) install dbsize module from postgresql contrib, and check.
depesz