pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Will LaShell <will@lashell.net>
To: Michael A Nachbaur <mike@nachbaur.com>
Cc: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: No flamefest please, MySQL vs. PostgreSQL AGAIN
Date: 13 May 2003 14:20:13 -0700
Message-ID: <1052860814.10316.21.camel@lyric.ofsloans.com> (raw)
In-Reply-To: <200305131232.14065.mike@nachbaur.com>
References: <1052721342.17601.118.camel@timetop>
	<20030513120818.GA17278@libertyrms.info>
	<1052850992.10336.13.camel@lyric.ofsloans.com>
	<200305131232.14065.mike@nachbaur.com>

On Tue, 2003-05-13 at 12:32, Michael A Nachbaur wrote:
> On Tuesday 13 May 2003 11:36 am, Will LaShell wrote:
> > On Tue, 2003-05-13 at 05:08, Andrew Sullivan wrote:
> > > On Mon, May 12, 2003 at 02:21:21PM -0400, Robert Treat wrote:
> > > > On Mon, 2003-05-12 at 10:32, Tom Lane wrote:
> > > > > in 7.4 either.  Possibly 7.5.  In the meantime, third-party solutions
> > > > > are still your only option, and PostgreSQL Inc's one is probably the
> > > > > best.
> > > > I wouldn't say they are your only options. there is the rserv code in
> > > > contrib which I've seen people post they have gotten working. There is
> > > The contrib/rserv code does indeed work for some people, and it is
> > > useful.  It is nowhere close to handling large volumes, but for fewer
> > > than a few thousand writes an hour, it seems to be good.
> >
> > I'd like to put my two cents in on this one.  We use rserv on our
> > cluster here, and we do a few hundred writes every 2 minutes. The
> > biggest thing that will cause slowdowns with rserv is not indexing the
> > replication id field.  If there is an index for that it should work
> > fine.
> 
> I tried rserv with a database that has over 1000 inserts per minute, and it 
> would just sit there for days at the "Preparing snapshot" (on a 
> Dual-Xeon/2GHz).  I hadn't tried indexing the id column though.

heh, yea,  we had a similar problem.  you should index the replication
id, and make sure the _rserv_log_ table has appropriate indexs on it.
You can enable the logging functions of rserv in one of the perl
modules. Look for DEBUG if I recall correctly. This will happily spam
you with information on what it is doing.

The other thing that should be remembered ( your email didn't mention it
which is why I bring it up ) is that when doing replication your master
server can potentially have double the read access on it during a cycle.
If you don't have a strong disk subsystem you'll send your server and
postgresql into a death spiral.

> > I do have some rudimentary documentation on how we did it all, and I
> > suppose I should really get that sent in.
> 
> Yes, Please, the documentation out there could definitely be improved with 
> some other case studies.

Indeed!  One of the important things we learned when we set up rserv is
that bigint's suck when it comes to indexes! Heh, after we modified the
rserv code to cast appropriately the world worked spectacularly.

Sincerely,

Will

Attachments:

  signature.asc (application/pgp-signature, 188B) download

view thread (15+ messages)  latest in thread

Message-ID: <1052860814.10316.21.camel@lyric.ofsloans.com>
Permalink:  ../1052860814.10316.21.camel@lyric.ofsloans.com/
Also on:    postgresql.org/message-id/1052860814.10316.21.camel@lyric.ofsloans.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-admin@postgresql.org
  Cc: will@lashell.net, mike@nachbaur.com
  Subject: Re: No flamefest please, MySQL vs. PostgreSQL AGAIN
  In-Reply-To: <1052860814.10316.21.camel@lyric.ofsloans.com>
  References: <1052721342.17601.118.camel@timetop> <20030513120818.GA17278@libertyrms.info> <1052850992.10336.13.camel@lyric.ofsloans.com> <200305131232.14065.mike@nachbaur.com> <1052860814.10316.21.camel@lyric.ofsloans.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