Re: Inserting 8MB bytea: just 25% of disk perf used? - Mailing list pgsql-performance

From Florian Weimer
Subject Re: Inserting 8MB bytea: just 25% of disk perf used?
Date
Msg-id 82bpgnh1eb.fsf@mid.bfk.de
Whole thread Raw
In response to Re: Inserting 8MB bytea: just 25% of disk perf used?  (Matthew Wakeling <matthew@flymine.org>)
List pgsql-performance
* Matthew Wakeling:

> The data needs to be written first to the WAL, in order to provide
> crash-safety. So you're actually writing 1600MB, not 800.

In addition to that, PostgreSQL 8.4.2 seems pre-fill TOAST files (or
all relations?) with zeros when they are written first, which adds
another 400 to 800 MB.

--
Florian Weimer                <fweimer@bfk.de>
BFK edv-consulting GmbH       http://www.bfk.de/
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

pgsql-performance by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: ext4 finally doing the right thing
Next
From: Pierre Frédéric Caillaud
Date:
Subject: Re: ext4 finally doing the right thing