pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc Cousin <mcousin@sigma.fr>
To: Francisco Reyes <lists@stringsutils.com>
Cc: Chris <dmagick@gmail.com>
Cc: Pgsql performance <pgsql-performance@postgresql.org>
Subject: Re: Inserts optimization?
Date: Fri, 14 Apr 2006 14:00:38 +0200
Message-ID: <200604141400.38982.mcousin@sigma.fr> (raw)
In-Reply-To: <cone.1144953939.190214.95544.5001@35st-server.simplicato.com>
References: <cone.1144953939.190214.95544.5001@35st-server.simplicato.com>

I hope I'm not going to say stupid things, but here's what i know (or i think 
i know :) ) about bacula + postgresql

If I remember correctly (I allready discussed this with Kern Sibbald a while 
ago), bacula does each insert in its own transaction : that's how the program 
is done, and of course it works ok with mysql and MyIsam tables, as mysql 
doesn't have transactions with myisam...

So, you'll probably end up being slowed down by WAL fsyncs ... and you won't 
have a lot of solutions. Maybe you should start with trying to set fsync=no 
as a test to confirm that (you should have a lot of iowaits right now if you 
haven't disabled fsync).

For now, I only could get good performance with bacula and postgresql when 
disabling fsync...


On Thursday 13 April 2006 20:45, Francisco Reyes wrote:
> Chris writes:
> > If you can, use copy instead:
> > http://www.postgresql.org/docs/8.1/interactive/sql-copy.html
>
> I am familiar with copy.
> Can't use it in this scenario.
>
> The data is coming from a program called Bacula (Backup server).
> It is not static data.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster



view thread (39+ messages)  latest in thread

Message-ID: <200604141400.38982.mcousin@sigma.fr>
Permalink:  ../200604141400.38982.mcousin@sigma.fr/
Also on:    postgresql.org/message-id/200604141400.38982.mcousin@sigma.fr

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mcousin@sigma.fr, lists@stringsutils.com, dmagick@gmail.com
  Subject: Re: Inserts optimization?
  In-Reply-To: <200604141400.38982.mcousin@sigma.fr>

* 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