pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Stark <gsstark@mit.edu>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-performance@postgresql.org, pgsql-hackers@postgresql.org, Michael Clemmons <glassresistor@gmail.com>
Cc: Hannu Krosing <hannu@2ndquadrant.com>
Cc: Scott Marlowe <scott.marlowe@gmail.com>
Subject: Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)
Date: Tue, 29 Dec 2009 00:27:29 +0000
Message-ID: <407d949e0912281627q2b857c8cn672e3a9b2cb083a0@mail.gmail.com> (raw)
In-Reply-To: <200912282354.51892.andres@anarazel.de>
References: <4427a97a0912101235x3ade510blcc00d5ce9883c6b6@mail.gmail.com>
	<4427a97a0912121236g4c06c562u221d638810ed2b6e@mail.gmail.com>
	<200912122138.42404.andres@anarazel.de>
	<200912282354.51892.andres@anarazel.de>

On Mon, Dec 28, 2009 at 10:54 PM, Andres Freund <andres@anarazel.de> wrote:
> fsync everything in that pass.
> Including the directory - which was not done before and actually might be
> necessary in some cases.

Er. Yes. At least on ext4 this is pretty important. I wish it weren't,
but it doesn't look like we're going to convince the ext4 developers
they're crazy any day soon and it would really suck for a database
created from a template to have files in it go missin.

-- 
greg



view thread (70+ messages)  latest in thread

Message-ID: <407d949e0912281627q2b857c8cn672e3a9b2cb083a0@mail.gmail.com>
Permalink:  ../407d949e0912281627q2b857c8cn672e3a9b2cb083a0@mail.gmail.com/
Also on:    postgresql.org/message-id/407d949e0912281627q2b857c8cn672e3a9b2cb083a0@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: gsstark@mit.edu, andres@anarazel.de, glassresistor@gmail.com, hannu@2ndquadrant.com, scott.marlowe@gmail.com
  Subject: Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb)
  In-Reply-To: <407d949e0912281627q2b857c8cn672e3a9b2cb083a0@mail.gmail.com>
  References: <4427a97a0912101235x3ade510blcc00d5ce9883c6b6@mail.gmail.com> <4427a97a0912121236g4c06c562u221d638810ed2b6e@mail.gmail.com> <200912122138.42404.andres@anarazel.de> <200912282354.51892.andres@anarazel.de> <407d949e0912281627q2b857c8cn672e3a9b2cb083a0@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox