pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Seum-Lim Gan <slgan@lucent.com>
To: pgsql-performance@postgresql.org
Cc: ahsaleh@lucent.com
Subject: PostgreSQL Disk Usage and Page Size
Date: Wed, 17 Mar 2004 17:52:13 -0600
Message-ID: <p0510034bbc7e94bbd838@[135.185.171.143]> (raw)

Hi all,

we have a question about the pagesize in PostgreSQL:

Using different pagesizes: 4K, 8K, 16K, 32K, when we store different 
record sizes
such as in the following example:

CREATE TABLE TEST_1 (
F1 VARCHAR(10),
F2 VARCHAR(5) );

CREATE TABLE TEST_2 (
F1 VARCHAR(10),
F2 VARCHAR(10) );

we're consistently having the following storage behavior:

60 records / 4k_page
120 records / 8k_page
240 records / 16k_page
480 records / 32k_page.

So it seems that it doesn't matter whether the record size is
15 bytes or 20 bytes, there's maximum number of records per page
as shown above.

Any clues if there's any parameter or bug causing that?

Gan (for Amgad)
-- 
+--------------------------------------------------------+
| Seum-Lim GAN                 email : slgan@lucent.com  |
| Lucent Technologies                                    |
| 2000 N. Naperville Road, 6B-403F  tel : (630)-713-6665 |
| Naperville, IL 60566, USA.        fax : (630)-713-7272 |
|       web : http://inuweb.ih.lucent.com/~slgan         |
+--------------------------------------------------------+



view thread (5+ messages)  latest in thread

Message-ID: <p0510034bbc7e94bbd838@[135.185.171.143]>
Permalink:  ../p0510034bbc7e94bbd838@%5B135.185.171.143%5D/
Also on:    postgresql.org/message-id/p0510034bbc7e94bbd838@[135.185.171.143]

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: slgan@lucent.com, ahsaleh@lucent.com
  Subject: Re: PostgreSQL Disk Usage and Page Size
  In-Reply-To: <p0510034bbc7e94bbd838@[135.185.171.143]>
  References: <p0510034bbc7e94bbd838@[135.185.171.143]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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