postgresql storage and performance questions

From: "Josh Harrison" <joshques(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: postgresql storage and performance questions
Date: 2007-11-19 14:44:38
Message-ID: 8d89ea1d0711190644p16696b4dm1e565739f1a14b8f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I have a few questions about the storage and performance

1. How do you estimate the table size in postgresql?
For example if I have a table 'Dummy' with 1 varchar (40) & 1
numeric(22,0) fields and 1000 rows, what is the tablesize estimate for
this (including the row overhead etc)? How many pages will this
occupy?

2. Also if the table contains null columns, does postgres allocates
the same space for these nulls columns? How does it handle 'nulls' in
terms of storage?

3. How does oracle handle these 2 cases?

4. Does increasing the block size in postgres improve query performance?

Thanks in advance
Josh

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-11-19 15:08:46 Re: convert custom datatype to array
Previous Message Mike Charnoky 2007-11-19 14:01:52 convert custom datatype to array