Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AE0564761EE for ; Tue, 22 Oct 2002 11:11:39 -0400 (EDT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by postgresql.org (Postfix) with ESMTP id 7ACE34761D8 for ; Tue, 22 Oct 2002 11:11:38 -0400 (EDT) Received: from andrew by mail.libertyrms.com with local (Exim 3.22 #3 (Debian)) id 1840h5-0002CJ-00 for ; Tue, 22 Oct 2002 11:11:43 -0400 Date: Tue, 22 Oct 2002 11:11:43 -0400 From: Andrew Sullivan To: "pgsql-admin@postgresql.org" Subject: Re: Using oid with RServ w/ Postgresql 7.2 Message-ID: <20021022111143.I4016@mail.libertyrms.com> Mail-Followup-To: "pgsql-admin@postgresql.org" References: <1034888522.3498.3.camel@lyric.ofsloans.com> <13546.1034906114@sss.pgh.pa.us> <1034912444.5172.17.camel@lyric.ofsloans.com> <16978.1034948686@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <16978.1034948686@sss.pgh.pa.us>; from tgl@sss.pgh.pa.us on Fri, Oct 18, 2002 at 09:44:46AM -0400 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/185 X-Sequence-Number: 6043 On Fri, Oct 18, 2002 at 09:44:46AM -0400, Tom Lane wrote: > Will LaShell writes: > > Does anyone know why rserve doesn't support/use multi-field keys for the > > replication id? > > Well, the one in contrib/ is only a prototype. The version that > PostgreSQL Inc sells commercially might have support for multi-field > keys by now. You'd have to ask them though ... It doesn't. The best answer really is to use a sequence and a key field just for this. (In fact, the rserv key field _must_ be unique, or the whole thing breaks horribly. Don't ask me how I know ;-) I understand that dbmirror uses the primary key on each table, but it can't handle multi-column primary keys either, so it's no help. For what it's worth, the additional overhead on our tables hasn't been enough for me to regret the implementation of rserv. We use the commercial version, by the way. The prototype version isn't terribly fast. Maybe dbmirror is a better free choice, but I don't know, as I haven't tested it. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110