pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Bruce Momjian <bruce@momjian.us>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dimitri Fontaine <dfontaine@hi-media.com>
Cc: Josh Berkus <josh@agliodbs.com>
Cc: postgres performance list <pgsql-performance@postgresql.org>
Subject: Re: PostgreSQL as a local in-memory cache
Date: Mon, 28 Jun 2010 17:57:25 -0400 (EDT)
Message-ID: <201006282157.o5SLvQ922390@momjian.us> (raw)
In-Reply-To: <201006231940.o5NJe8Q05526@momjian.us>

Bruce Momjian wrote:
> Tom Lane wrote:
> > Dimitri Fontaine <dfontaine@hi-media.com> writes:
> > > Josh Berkus <josh@agliodbs.com> writes:
> > >> a) Eliminate WAL logging entirely
> > >> b) Eliminate checkpointing
> > >> c) Turn off the background writer
> > >> d) Have PostgreSQL refuse to restart after a crash and instead call an
> > >> exteral script (for reprovisioning)
> > 
> > > Well I guess I'd prefer a per-transaction setting, allowing to bypass
> > > WAL logging and checkpointing.
> > 
> > Not going to happen; this is all or nothing.
> > 
> > > Forcing the backend to care itself for
> > > writing the data I'm not sure is a good thing, but if you say so.
> > 
> > Yeah, I think proposal (c) is likely to be a net loss.
> > 
> > (a) and (d) are probably simple, if by "reprovisioning" you mean
> > "rm -rf $PGDATA; initdb".  Point (b) will be a bit trickier because
> > there are various housekeeping activities tied into checkpoints.
> > I think you can't actually remove checkpoints altogether, just
> > skip the flush-dirty-pages part.
> 
> Based on this thread, I have developed the following documentation patch
> that outlines the performance enhancements possible if durability is not
> required.  The patch also documents that synchronous_commit = false has
> potential committed transaction loss from a database crash (as well as
> an OS crash).

Applied.

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

  + None of us is going to be here forever. +



view thread (73+ messages)  latest in thread

Message-ID: <201006282157.o5SLvQ922390@momjian.us>
Permalink:  ../201006282157.o5SLvQ922390@momjian.us/
Also on:    postgresql.org/message-id/201006282157.o5SLvQ922390@momjian.us

 · 

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-performance@postgresql.org
  Cc: bruce@momjian.us, tgl@sss.pgh.pa.us, dfontaine@hi-media.com, josh@agliodbs.com
  Subject: Re: PostgreSQL as a local in-memory cache
  In-Reply-To: <201006282157.o5SLvQ922390@momjian.us>
  References: <201006231940.o5NJe8Q05526@momjian.us> <201006282157.o5SLvQ922390@momjian.us>

* 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