pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Mead <scott.lists@enterprisedb.com>
To: Nikolas Everett <nik9000@gmail.com>
Cc: jd <jd@commandprompt.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-performance <pgsql-performance@postgresql.org>
Cc: Michael Clemmons <glassresistor@gmail.com>
Subject: Re: 8.4.1 ubuntu karmic slow createdb
Date: Fri, 11 Dec 2009 16:59:43 -0500
Message-ID: <d3ab2ec80912111359s47925b0dl7ce54b849767bacc@mail.gmail.com> (raw)
In-Reply-To: <d4e11e980912111339q355f9fb2rf444f47a208b5b1e@mail.gmail.com>
References: <4427a97a0912101235x3ade510blcc00d5ce9883c6b6@mail.gmail.com>
	<200912102256.59868.andres@anarazel.de>
	<4427a97a0912101401kb29e1a5ic5424d6d0b7efe62@mail.gmail.com>
	<200912102309.04057.andres@anarazel.de>
	<d4e11e980912101738t77b654b2j1db1c023eafd9a58@mail.gmail.com>
	<1260554319.2611.10.camel@jd-desktop.unknown.charter.com>
	<d4e11e980912111243s6b0a67b1u2c2c22031fadf756@mail.gmail.com>
	<1260564610.2611.41.camel@jd-desktop.unknown.charter.com>
	<d4e11e980912111339q355f9fb2rf444f47a208b5b1e@mail.gmail.com>

On Fri, Dec 11, 2009 at 4:39 PM, Nikolas Everett <nik9000@gmail.com> wrote:

>
>
>
> Fair enough.  I'm of the opinion that developers need to have their unit
> tests run fast.  If they aren't fast then your just not going to test as
> much as you should.  If your unit tests *have* to createdb then you have to
> do whatever you have to do to get it fast.  It'd probably be better if unit
> tests don't create databases or alter tables at all though.
>
> Regardless of what is going on on your dev box you really should leave
> fsync on on your continuous integration, integration test, and QA machines.
> They're what your really modeling your production on anyway.
>


  The other common issue is that developers running with something like
'fsync=off' means that they have completely unrealistic expectations of the
performance surrounding something.  If your developers see that when fsync
is on, createdb takes x seconds vs. when it's off, then they'll know that
basing their entire process on that probably isn't a good idea.  When
developers think something is lightning, they tend to base lots of stuff on
it, whether it's production ready or not.


--Scott

view thread (22+ messages)  latest in thread

Message-ID: <d3ab2ec80912111359s47925b0dl7ce54b849767bacc@mail.gmail.com>
Permalink:  ../d3ab2ec80912111359s47925b0dl7ce54b849767bacc@mail.gmail.com/
Also on:    postgresql.org/message-id/d3ab2ec80912111359s47925b0dl7ce54b849767bacc@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: scott.lists@enterprisedb.com, nik9000@gmail.com, jd@commandprompt.com, andres@anarazel.de, pgsql-performance@postgresql.org, glassresistor@gmail.com
  Subject: Re: 8.4.1 ubuntu karmic slow createdb
  In-Reply-To: <d3ab2ec80912111359s47925b0dl7ce54b849767bacc@mail.gmail.com>
  References: <4427a97a0912101235x3ade510blcc00d5ce9883c6b6@mail.gmail.com> <200912102256.59868.andres@anarazel.de> <4427a97a0912101401kb29e1a5ic5424d6d0b7efe62@mail.gmail.com> <200912102309.04057.andres@anarazel.de> <d4e11e980912101738t77b654b2j1db1c023eafd9a58@mail.gmail.com> <1260554319.2611.10.camel@jd-desktop.unknown.charter.com> <d4e11e980912111243s6b0a67b1u2c2c22031fadf756@mail.gmail.com> <1260564610.2611.41.camel@jd-desktop.unknown.charter.com> <d4e11e980912111339q355f9fb2rf444f47a208b5b1e@mail.gmail.com> <d3ab2ec80912111359s47925b0dl7ce54b849767bacc@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