X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 03FCC475EE2 for ; Tue, 13 May 2003 17:20:15 -0400 (EDT) Received: from isis.pcis.net (cr.pcis.net [207.18.226.3]) by postgresql.org (Postfix) with ESMTP id 0F6D0475AA9 for ; Tue, 13 May 2003 17:20:14 -0400 (EDT) Received: from lyric.ofsloans.com (unverified [209.180.142.225]) by isis.pcis.net (Rockliffe SMTPRA 4.5.6) with ESMTP id ; Tue, 13 May 2003 16:20:21 -0500 Subject: Re: No flamefest please, MySQL vs. PostgreSQL AGAIN From: Will LaShell To: Michael A Nachbaur Cc: PostgreSQL Admin 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> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-k/+iEZd3OCnt4/eUclKp" X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) Date: 13 May 2003 14:20:13 -0700 Message-Id: <1052860814.10316.21.camel@lyric.ofsloans.com> Mime-Version: 1.0 X-Spam-Status: No, hits=-45.7 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,QUOTE_TWICE_1,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/159 X-Sequence-Number: 8721 --=-k/+iEZd3OCnt4/eUclKp Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 solut= ions > > > > > 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. >=20 > I tried rserv with a database that has over 1000 inserts per minute, and = it=20 > would just sit there for days at the "Preparing snapshot" (on a=20 > 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. >=20 > Yes, Please, the documentation out there could definitely be improved wit= h=20 > 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 --=-k/+iEZd3OCnt4/eUclKp Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQA+wWGNZr3R5kgOZd0RAldMAJ9Ky4ekHeojzL6yMk01W9IAWX7TvwCeM9+l AXTiTkfbwIOo/Gsn2BRHncQ= =1My6 -----END PGP SIGNATURE----- --=-k/+iEZd3OCnt4/eUclKp--