Re: fillfactor Question

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Siah *EXTERN*" <siasookhteh(at)gmail(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: fillfactor Question
Date: 2007-09-07 08:26:53
Message-ID: D960CB61B694CF459DCFB4B0128514C22FB673@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Siah wrote:
> fillfactor affects 'update' statements or also has affects for
> 'insert' and 'delete'?

I would say: fillfactor modifies the behaviour of INSERT and
has effects for UPDATE.

When you choose fillfactor less than the default 100, INSERT
will not fill the pages completely. This will slow down insert a
little (if fillfactor is 90, then roughly 10% more pages will
be written because each is only 90% full, leading to more I/O).

On the other hand, it will speed up an UPDATE considerably, because
if there is still enough space in the block, the UPDATE will
only have to touch one data block instead of two.

The speed of DELETE should not be affected.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dave Page 2007-09-07 08:34:12 Re: Connecting to PostgreSQL server with Mono using ident authetication
Previous Message Denis Gasparin 2007-09-07 08:16:44 Connection Pooling directly on Postgres Server