pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Database size, and table size
3+ messages / 2 participants
[nested] [flat]

* Database size, and table size
@ 2005-10-21 22:39  Roger Strandberg / Hamsta <roger.strandberg@hamsta.se>
  0 siblings, 1 reply; 3+ messages in thread

From: Roger Strandberg / Hamsta @ 2005-10-21 22:39 UTC (permalink / raw)
  To: pgsql-admin

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  

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Database size, and table size
@ 2005-10-22 06:05  hubert depesz lubaczewski <depesz@gmail.com>
  parent: Roger Strandberg / Hamsta <roger.strandberg@hamsta.se>
  0 siblings, 1 reply; 3+ messages in thread

From: hubert depesz lubaczewski @ 2005-10-22 06:05 UTC (permalink / raw)
  To: Roger Strandberg / Hamsta <roger.strandberg@hamsta.se>; +Cc: pgsql-admin

On 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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Database size, and table size
@ 2005-10-22 18:01  Roger Strandberg / Hamsta <roger.strandberg@hamsta.se>
  parent: hubert depesz lubaczewski <depesz@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Roger Strandberg / Hamsta @ 2005-10-22 18:01 UTC (permalink / raw)
  To: hubert depesz lubaczewski <depesz@gmail.com>; +Cc: pgsql-admin

Okay i did so, result:
html_slave=# select pg_size_pretty(relation_size('quick_search'));
 pg_size_pretty
----------------
 490 MB
(1 row)

html_slave=# select pg_size_pretty(relation_size('html_company'));
 pg_size_pretty
----------------
 1567 MB
(1 row)

html_slave=# select pg_size_pretty(database_size('html_slave'));
 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 ----- 
  From: hubert depesz lubaczewski 
  To: Roger Strandberg / Hamsta 
  Cc: pgsql-admin@postgresql.org 
  Sent: Saturday, October 22, 2005 8:05 AM
  Subject: Re: [ADMIN] Database size, and table size


  On 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

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2005-10-22 18:01 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-10-21 22:39 Database size, and table size Roger Strandberg / Hamsta <roger.strandberg@hamsta.se>
2005-10-22 06:05 ` hubert depesz lubaczewski <depesz@gmail.com>
2005-10-22 18:01   ` Roger Strandberg / Hamsta <roger.strandberg@hamsta.se>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox