Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D6B8A632CCF; Mon, 28 Dec 2009 20:28:02 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 32811-10; Tue, 29 Dec 2009 00:27:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-px0-f200.google.com (mail-px0-f200.google.com [209.85.216.200]) by mail.postgresql.org (Postfix) with ESMTP id E0809633461; Mon, 28 Dec 2009 20:27:51 -0400 (AST) Received: by pxi38 with SMTP id 38so1273626pxi.28 for ; Mon, 28 Dec 2009 16:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=KqZObUw2v8ZevYPP2qy5OV1mmRkvJCSzDmHXcXxYWDM=; b=A79ccANHH6dM/x+3n6D1w0KedNwlh2GKx2OsxU/u7cIjlkTI3QcvWTOdNsLCY5OjiI 2QLpLUIRG4X1ssC94tFd5CszwefCgB+62XVTIF9NPSzkDHV2E00suwlVSCR+BXfzDm7R 2cjKEJnq6AxRpI3FaaunECksLDWS45AQQNmZU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=GDxzAtKm12YaadgEWAUWlzPPYDMTpLg7wVLFho6z8j6pfSZOovLaXL79UHfpLvjTnH jXBG0iJB5EyeC+BbC/G+XmCB/OxIObCKbkvYB0cDt3Fee4GnD/zFk5qnusS0rzjfz26f WmK4HmbLufuB7d4fqup50fiVm/BQ5hMeXAnVY= MIME-Version: 1.0 Received: by 10.141.107.9 with SMTP id j9mr11527364rvm.254.1262046469869; Mon, 28 Dec 2009 16:27:49 -0800 (PST) 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> From: Greg Stark Date: Tue, 29 Dec 2009 00:27:29 +0000 X-Google-Sender-Auth: 46a9366c433947aa Message-ID: <407d949e0912281627q2b857c8cn672e3a9b2cb083a0@mail.gmail.com> Subject: Re: Faster CREATE DATABASE by delaying fsync (was 8.4.1 ubuntu karmic slow createdb) To: Andres Freund Cc: pgsql-performance@postgresql.org, pgsql-hackers@postgresql.org, Michael Clemmons , Hannu Krosing , Scott Marlowe Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/251 X-Sequence-Number: 36865 On Mon, Dec 28, 2009 at 10:54 PM, Andres Freund 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