Skip site navigation (1) Skip section navigation (2)

Re: Inserting 8MB bytea: just 25% of disk perf used?

From: Florian Weimer <fweimer(at)bfk(dot)de>
To: Matthew Wakeling <matthew(at)flymine(dot)org>
Cc: "fkater\(at)googlemail(dot)com" <fkater(at)googlemail(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Inserting 8MB bytea: just 25% of disk perf used?
Date: 2010-01-21 16:24:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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(at)bfk(dot)de>
BFK edv-consulting GmbH
Kriegsstraße 100              tel: +49-721-96201-1
D-76133 Karlsruhe             fax: +49-721-96201-99

In response to

pgsql-performance by date

Next:From: Pierre Frédéric CaillaudDate: 2010-01-21 16:36:47
Subject: Re: ext4 finally doing the right thing
Previous:From: elias ghanemDate: 2010-01-21 16:14:38
Subject: Slow update query

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group