Re: PostgreSQL Disk Usage and Page Size - Mailing list pgsql-performance

From Stephan Szabo
Subject Re: PostgreSQL Disk Usage and Page Size
Date
Msg-id 20040318085310.S50452@megazone.bigpanda.com
Whole thread Raw
In response to PostgreSQL Disk Usage and Page Size  (Seum-Lim Gan <slgan@lucent.com>)
List pgsql-performance
On Thu, 18 Mar 2004, Saleh, Amgad H (Amgad) wrote:

> Stephan / Stephen
>
> We know about the overhead and do understand the math you've provided.
> This is not the question we're asking. We've just provided the table definitions as
> examples.
>
> The real question was, even with the 52 & 56 (assuming right),' I wouldn't get
> the same number of records per page for all 4k, 8k, 16k, and 32k pages.

On my system, I don't using your tests, IIRC I got 134 with TEST_1 and
like 128 or so on TEST_2 when I used strings of maximum length for the
columns.

>
> To make it more clear to you here's an example:
>
> For an 8k-page: we've got 120 records/page for both tables and other tables such as
>
>  CREATE TABLE TEST_3 (
>  F1 VARCHAR(10),
>  F2 VARCHAR(12) );

Are you storing the same data in all three tables or different data in all
three tables? That's important because there's no difference in length
between varchar(5) and varchar(12) when storing the same 5 character
string.


pgsql-performance by date:

Previous
From: Tom Lane
Date:
Subject: Re: severe performance issue with planner (fwd)
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] fsync method checking