Re: fillfactor Question - Mailing list pgsql-general

From Albe Laurenz
Subject Re: fillfactor Question
Date
Msg-id D960CB61B694CF459DCFB4B0128514C22FB673@exadv11.host.magwien.gv.at
Whole thread Raw
In response to fillfactor Question  (Siah <siasookhteh@gmail.com>)
List 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

pgsql-general by date:

Previous
From: "Albe Laurenz"
Date:
Subject: Re: dblink vs dbi-link (and errors compiling)
Next
From: Dave Page
Date:
Subject: Re: Connecting to PostgreSQL server with Mono using ident authetication