Re: Running PostgreSQL as fast as possible no matter the consequences - Mailing list pgsql-performance

From Bruce Momjian
Subject Re: Running PostgreSQL as fast as possible no matter the consequences
Date
Msg-id 201101191707.p0JH7O302865@momjian.us
Whole thread Raw
In response to Re: Running PostgreSQL as fast as possible no matter the consequences  (Chris Browne <cbbrowne@acm.org>)
Responses Re: Running PostgreSQL as fast as possible no matter the consequences  (Fabrízio de Royes Mello <fabriziomello@gmail.com>)
Re: Running PostgreSQL as fast as possible no matter the consequences  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-performance
Chris Browne wrote:
> gentosaker@gmail.com (A B) writes:
> > If you just wanted PostgreSQL to go as fast as possible WITHOUT any
> > care for your data (you accept 100% dataloss and datacorruption if any
> > error should occur), what settings should you use then?
>
> Use /dev/null.  It is web scale, and there are good tutorials.
>
> But seriously, there *are* cases where "blind speed" is of use.  When
> loading data into a fresh database is a good time for this; if things
> fall over, it may be pretty acceptable to start "from scratch" with
> mkfs/initdb.
>
> I'd:
> - turn off fsync
> - turn off synchronous commit
> - put as much as possible onto Ramdisk/tmpfs/similar as possible

FYI, we do have a documentation section about how to configure Postgres
for improved performance if you don't care about durability:

    http://developer.postgresql.org/pgdocs/postgres/non-durability.html

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

pgsql-performance by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: the XID question
Next
From: Tom Lane
Date:
Subject: Re: "NOT IN" substantially slower in 9.0.2 than 8.3.13 - NOT EXISTS runs fast in both 8.3.13 and 9.0.2